HaxeFoundation / HaxeFoundation/haxe

PosInfos in accessors?

Open
#6,095 5 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

Just noticed that `PosInfos` doesn't work on accessor methods. I guess they should work...?

```haxe
class Test {
var a(get, null) : String;

function get_a(?pos : haxe.PosInfos) {
return a;
}

function new(a) this.a = a;

static function main() {
trace(new Test("12345").a);
}
}
```

```
Test.hx:4: lines 4-6 : In method get_a required by property a
Test.hx:4: lines 4-6 : ?pos : Null -> String should be Void -> String
```

Also available at http://try.haxe.org/#60A1d

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.