-
-
Notifications
You must be signed in to change notification settings - Fork 671
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
"@:using" is not working on interfaces. #8022
Comments
At this point I'm wondering, what does |
This shouldn't work. We will document this accordingly. |
I don't know, this looks like a somewhat legit use-case and it looks like it should work. And we don't have to explore anything here, right? We can inherit |
We can, but I don't think we should because this gets very magical. I'm inclined to go the opposite way and restrict |
Well, I can live with that. If we error on other types it'll at least look as something actually designed and not randomly (not) working :-) And we can revisit this some time in future. |
Please, noooo :( |
But you can just add your |
Yes, but you can do the same for enums... Why do you need |
Dunno. When I proposed this, I specifically mentioned interfaces as a use case. And quite frankly, I don't get it: if you can apply the same extensions via using "globally" in As for "why not just use |
Hello! :)
Error:
Test.hx:3: characters 9-24 : Test has no field test
http://try-haxe.mrcdk.com/#7Cd23
Haxe 4. RC1
The text was updated successfully, but these errors were encountered: