tink_macro icon indicating copy to clipboard operation
tink_macro copied to clipboard

catchBounce hangs

Open kevinresol opened this issue 4 years ago • 1 comments

TBH, I am not exactly sure where to report this.

Repro case: https://github.com/kevinresol/haxe_issues/tree/tink_macro_34

haxe build.hxml -v will hang with:

...
Exiting macro tink.macro.Types.resolveDirectType
Typing tink.pure._Vector.Vector_Impl_.fromIterable
Typing tink.pure._Vector.Vector_Impl_._new
Typing Main.data
Typing tink.pure._List.List_Impl_.fromArray
Typing tink.pure._List.Node.new
Typing tink.pure._List.Node.EMPTY
Typing tink.pure._List.List_Impl_.toIterable
Typing tink.pure._List.List_Impl_.iterator
Typing tink.pure.NodeIterator.new
Typing tink.pure.NodeIterator.hasNext
Typing tink.pure.NodeIterator.next
Exiting macro tink.macro.Bouncer.catchBounce

kevinresol avatar Jan 08 '21 07:01 kevinresol

Apparently something is unable to infer the type parameter of tink.pure.Vector.

Explicitly type-hinting fixes it: <Foo data=${(Vector.fromIterable(data):Vector<Bar>)}/>

kevinresol avatar Jan 08 '21 07:01 kevinresol