Closed lublak closed 2 years ago
https://github.com/HaxeCheckstyle/haxeparser/blob/dace004f6aff39cf7cf3a9279da24f63b27de2af/src/haxeparser/HaxeParser.hx#L1707 can we just ask here if t is null?
Uhm, parseTypeHint
should not accept in that case. The case _: null;
should not be there, this is what parseTypeOpt
is for. Try removing that case and see if everything explodes.
@Simn after removing: https://github.com/HaxeCheckstyle/haxeparser/blob/dace004f6aff39cf7cf3a9279da24f63b27de2af/src/haxeparser/HaxeParser.hx#L1030
it works fine
cast(value) is currently parsed as ECast(ECheckType(value, null) ,null). But just should parse to ECast(value, null)