facebook / facebook/hhvm

"Cannot use experimental feature" should have an error code

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

Description

### HHVM Version

3.15, 3.16, latest nightly (2016-12-04)

### Standalone code, or other way to reproduce the problem

In non-pseudomain code:

```Hack
$x = vec[1, 2, 3];
```

`hh_client`

### Expected result

Typechecker error with error code.

### Actual result

```
TypeStructureTest.php:270:8,10: Cannot use experimental feature: vec (Other[0000])
```

0000 is the problem (though it is compatible with HH_IGNORE_ERROR still)

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.