You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I think this error should be handled with a proper error message or by throwing an exception. Haxe 3.4.X handled this by throwing a 'Invalid input value' exception.
The text was updated successfully, but these errors were encountered:
kLabz
changed the title
Conflict between Context.getType() and using haxe.macro.Tools
Haxe 4: errors with Context.getType()May 8, 2018
kLabz
changed the title
Haxe 4: errors with Context.getType()
Haxe 4: missing error handling for Context.getTypedExpr(null)May 8, 2018
###Edit
Found the actual issue, it was not really related to the things I pointed to at first.
To summarize: in Haxe 4,
Context.getTypedExpr(null)
fails withMacroApi.Invalid_expr
instead of throwing 'Invalid input value'.See http://try-haxe.mrcdk.com/#1979B
I think this error should be handled with a proper error message or by throwing an exception. Haxe 3.4.X handled this by throwing a 'Invalid input value' exception.
The text was updated successfully, but these errors were encountered: