HaxeFoundation / HaxeFoundation/haxe

Reflect.field on public static inline return null

Open
#6,630 26 comments 0 reactions 1 assignee Claimed by @hughsando View on GitHub
platform-cpp
Dominant language
Haxe
Stars
6.9k
Forks
715
Avg merge
2d 2h
Merged PRs (30d)
11

Description

With the nightly build e477477 (2017-10-01 21:32);
If I want resolve an `public static inline` with `Reflect.field`, I get null.
Without `inline` is working.

```haxe
class Test {

public static inline var TEST="hehe";

public static function main() {
trace("Haxe is great!");
var classReference : Class = Type.resolveClass( "Test" );
trace("Test.TEST: " + Test.TEST);
trace(Reflect.field(Test, "TEST"));
}
}
```
`haxe -main Test.hx -php test && php test/index.php`

Related to HaxeFoundation/haxe#6583
hexMachina failing test : https://travis-ci.org/DoclerLabs/hexCore/jobs/282173307#L1135

cc @RealyUniqueName

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.