HaxeFoundation / HaxeFoundation/haxe

[HashLink] Uncaught exception: Can't cast dynobj to #Foo

Open
#6,206 8 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

code for example:
```haxe
package;

class Main {

static function main() {
Reflect.callMethod({}, new Foo().test, []);
}
}

class Foo {
public function new() {}

public function test() {
trace("test");
}
}
```

Flash - ok
JS - ok
CPP - ok
CS - ok
Java - ok
Neko - ok

HashLink result:
```
Uncaught exception: Can't cast dynobj to #Foo
Called from $Reflect.callMethod(C:\HaxeToolkit\haxe\std/hl/_std/Reflect.hx:85)
Called from $Main.main(Main.hx:6)
Called from fun$337(?:1)
```

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.