facebook / facebook/hhvm

[Feature Request] Make use statements of nonexistant entities raise a typechecker error

Open
#8,524 2 comments 0 reactions 0 assignees View on GitHub
feature request hack
Dominant language
C++
Stars
18.7k
Forks
3.1k
Avg merge
1h 47m
Merged PRs (30d)
2

Description

### HHVM Version

```
HipHop VM 4.11.0 (rel)
Compiler: 1561398047_114259580
Repo schema: 520e2fedfb82e52f9393995caea047ec425b15ce
hackc-fc15a7f638ec69c8fdb7df14b24dc3cc49fda256-4.11.0
```

### Operating System and Version
```Ubuntu 18.04```

### Standalone code, or other way to reproduce the problem
```HACK
use function Foo\Bar\Baz\Qux\nonexistant;
```

### Actual result
```
No errors!
```

### ~Expected~ Desired result
```
Typing[4090] Could not find function Foo\Bar\Baz\Qux\nonexistant in
--> example.hack
1 | use function Foo\Bar\Baz\Qux\nonexistant;
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^
````

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.