-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
Eliminate @proxy from language spec for 2.0 #30220
Comments
Aha, I just encountered analyzer issues with this in the dev channel. This means |
@bergwerf: Please resubmit your concern (could just be a copy-paste of the text that you wrote above) in a different issue: This issue is about the update to the language specification, and that step has been taken. There are no plans to support anything like abstract class A { int foo(); }
@proxy
class B {
noSuchMethod(i) => 42;
}
main() {
// Let's pretend that a `B` is an `A`:
int i = new B().foo();
// Works! `new B().foo()` type checks because of `@proxy`, and at runtime
// `noSuchMethod` does something which is OK for emulating `A.foo`.
A a = new B();
// Fails (in checked mode)! A `B` really isn't an `A`.
} So it's a very shallow kind of masquerading: You can treat something of type So what you can do right now is to make sure that your In any case, I'm sure there is someone who knows much more about the concrete setting where you are using those |
Thank you, I might do so. I stopped actively using JsonObject in favor of a
custom generated reflection system that can use dart classes to
encode/decode JSON objects.
…On Thu, Jan 25, 2018, 23:18 Erik Ernst ***@***.***> wrote:
Closed #30220 <#30220>.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#30220 (comment)>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/AEQJ1Z74jYmu0QD7uZqF0eOckQiTvvL9ks5tOP22gaJpZM4OewRI>
.
|
Making sure this is tracked. I think we agreed to eliminate.
@floitschG
The text was updated successfully, but these errors were encountered: