HaxeFoundation / HaxeFoundation/haxe

<Null<T>> to <T> variance

Open
#6,785 7 comments 0 reactions 0 assignees View on GitHub
feature-null-t
Dominant language
Haxe
Stars
6.9k
Forks
715
Avg merge
2d 2h
Merged PRs (30d)
11

Description

The following works on all targets except HL:

```haxe
class Main {
static function main() {
function foo(a:Array) trace(a);
foo(([1, 2, 3] : Array>));
}
}
```

```
Uncaught exception: Can't cast #hl.types.ArrayObj to #hl.types.ArrayBytes_Int
Called from $Main.main(Main.hx:4)
Called from fun$337(?:1)
Error: Command failed with error 1
```

Haxe version: 37f6b2a9b
HashLink version: HaxeFoundation/hashlink@1b09bbb

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.