We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
abstract Dyn(Dynamic) from Dynamic { @:to function toDynamic():Dynamic return this; } class Main { static function main() { var value:Dyn = "s"; (try value catch (pokemon:Dynamic) null : String); } }
will fail with Main.hx:8: characters 8-13 : Dyn should be String
Main.hx:8: characters 8-13 : Dyn should be String
The text was updated successfully, but these errors were encountered:
This is specific to try/catch because (if (Math.random() < 0.5) value else null : String) compiles!
try/catch
(if (Math.random() < 0.5) value else null : String)
Sorry, something went wrong.
Interestingly enough the above code compiles in 3.4.4.
try-haxe says it also compiles in 4.0.0-preview.1, so this is a 4.0 regression
478c8f4
Thanks a lot, that was quick!
No branches or pull requests
will fail with
Main.hx:8: characters 8-13 : Dyn should be String
The text was updated successfully, but these errors were encountered: