Strange behavior of generics

Hello, are the generics not working correctly, or is there something wrong with the code? I’m confused.

why are u using ampersand with generic T?
just do a0: T, if the argument has inferred type then T will be that type, else its your custom type via generic<myStrangeTable>({strage = true})


also works for me, are you on new type solver?

I think I solved the problem by adding type casting.

Yes

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.