HaxeFoundation / HaxeFoundation/haxe

Should .bind() be forwarded for abstracts?

Open
#9,685 2 comments 0 reactions 0 assignees View on GitHub
Dominant language
Haxe
Stars
6.9k
Forks
715
Avg merge
2d 2h
Merged PRs (30d)
11

Description

```Haxe
package ;

class Main {

public static function main() {
var f:AbsString->Int> = (a, b) -> a + b.length;
var b = f.bind(_, 'hello');
trace( b(1) );
}

}

@:forward
abstract Abs(T) from T to T {}
```

Throws the following error:
```
Main.hx:7: characters 19-23 : Abs<(Int, String) -> Int> has no field bind
Main.hx:7: characters 24-25 : Unknown identifier : _
```

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.