HaxeFoundation / HaxeFoundation/haxe

"output_value: functional value" when using hl.Ref<String> in hl/c

Open
#11,313 1 comment 0 reactions 0 assignees View on GitHub
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

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.