HaxeFoundation / HaxeFoundation/haxe
"output_value: functional value" when using hl.Ref<String> in hl/c
Open
- Dominant language
- Haxe
- Stars
- 6.9k
- Forks
- 715
- Avg merge
- 2d 2h
- Merged PRs (30d)
- 11
Description
Minimal repro:
```
@:hlNative("test")
class NativeTest
{
public static function refFunc(value: hl.Ref) : Void {}
}
class Main {
static function main() {
var test: String = "";
NativeTest.refFunc( test );
}
}
```
This error is produced by the haxe compiler during hl/c generation (`-hl out.c`). It works as expected when using hl bytecode.
hl.Ref\ and other types work fine, only String seems to be affected.
Contributor guide
Assessment
This issue has not been assessed yet.