RealyUniqueName / haxe

Haxe - The Cross-Platform Toolkit

Home Page:http://haxe.org

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

@:coreType causes the compiler to hang

mockey opened this issue · comments

According to docs @:coreType abstracts should not have underlying type.

Yes, I know. But this causes the generator to hang.
@:coreType abstract NativeArray<T> hangs..
abstract NativeArray<T>(Dynamic) works.

Oh, now i get it )

The compiler just hangs when generating php, no error message or so.

Did you try adding @:runtimeValue? https://haxe.org/manual/cr-metadata.html

No. Is this a runtimeValue? I don't know.
But I have a similar setup, that runs with old genphp (with @:coreType and all).

Dynamic is a parametrized asbtract without underlying type. And it works:

@:coreType @:runtimeValue abstract Dynamic<T> {}

I tried @:coreType @:runtimeValue abstract NativeArray<T> and the compiler also hangs.
I'm not especially fond of @coreType, it's just that I used it without any problems before...

I think i know what's the reason. Will fix it later today.

I can't reproduce this bug. Can you provide a minimal example code?

Did you uncomment @coreType on NativeArray?
Or define any other @coreType abstract?

I did both

Nevermind. I tried again and reproduced this issue