Open Speedphoenix opened 2 months ago
~This should fail in some way because you're trying to define a type that already exists, but the error message isn't ideal.~
I misread that code, let me try again...
Edit: I can't tell what you're actually trying to do. To me it looks like the compiler is correct because your TestType
class doesn't define bit2
, only bit
.
I think the issue here is just the lack of position for the error
Ah, I seem to struggle with reading comprehension today... This is indeed a bit silly because we don't necessarily know which type this is about.
Try haxe: https://try.haxe.org/#15BeB54A
this yields