-
-
Notifications
You must be signed in to change notification settings - Fork 658
New issue
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
Enum abstract not checked #11577
Comments
It's even worse: class Main {
static var step(default, set):String;
static function set_step(s:String) {
step = s;
return s;
}
static function main() {
step++;
}
} (Edit: Well that would actually make some sense with String and |
Is it a regression ? It seems quite bad, we want the fix to be merged asap @yuxiaomao :D |
According to my brief try.haxe investigations it was a regression from 4.1 to 4.2, so quite old. I'll pull the linked fix and will keep this issue open as a reminder to add tests. |
The case of string++ can still compile without warning. Is that normal? |
Good question... when accessors are involved, |
Surprisingly the following compile while it shouldn't ( T should be Int on step++)
The text was updated successfully, but these errors were encountered: