@:coreType causes the compiler to hang
mockey opened this issue · comments
see #37
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
Fixed in 51a9650