I just updated one of my older projects to latest coconut and haxe4 rc1, and then https://github.com/MVCoconut/coconut.data/issues/12 pops up again while it was fine before the upgrade. Dunno what have changed causing the problem. But apparently this patch fixes it.
p.s. My problematic type is an abstract marked with @:pure, otherwise its underlying type is recursive. Since it is not tagged as @:coreType, check(a.type) triggered the recursion. So I moved that after the @:pure check.
I just updated one of my older projects to latest coconut and haxe4 rc1, and then https://github.com/MVCoconut/coconut.data/issues/12 pops up again while it was fine before the upgrade. Dunno what have changed causing the problem. But apparently this patch fixes it.
p.s. My problematic type is an abstract marked with
@:pure
, otherwise its underlying type is recursive. Since it is not tagged as@:coreType
,check(a.type)
triggered the recursion. So I moved that after the@:pure
check.