HaxeFoundation / HaxeFoundation/haxe

Abstract over abstract casting

Open
#5,342 4 comments 1 reaction 0 assignees View on GitHub
Dominant language
Haxe
Stars
6.9k
Forks
715
Avg merge
2d 2h
Merged PRs (30d)
11

Description

Typing `C` in the following code fails with `You can only declare from/to with compatible types`.
While `B` is fine.

``` haxe
abstract A(Array) to Array{}
abstract B(Array) to Array> {}
abstract C(Array) to Array>> {}
```

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.