-
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
@proxy doesn't work anymore #32358
Comments
A bit more information: #30220 |
Ok but that's a non-starter. It breaks this code in an irrecoverable way. |
Lots of Dart2 breaks code in a an irrecoverable way. You may want to setup a meeting with @leafpetersen to discuss this further, this change has already been implemented, decided, and landed (and I don't think we plan to change it). |
ok, will do when I get back in the office. In the meantime I'll file a feature request. |
You can still use the "NSM implements everything" path if you type things as dynamic, but the most basic property we're aiming for in Dart 2 is that if you say something has static type Widget, the Widget methods are there. You can make a class which implements I do think we want a feature here to replace this. It might looks something like having some way to specify a static type which means "Treat this like a Widget for method call analysis, but do dynamic lookup on everything and don't allow it to be assigned to real Widgets". Or it might look like some kind of delegation feature. Or it might look like some kind of drop in extension method feature. Or something else? We're definitely interested in hearing about use cases. cc @lrhn |
The use case here is an object that responds to any message, but doesn't try to implement any interface. It's a non- |
Moving further comments over to #32360. |
I have a class called
Json
that implementsnoSuchMethod
so that you can write code likedata.foo.bar.baz
to dereference through JSON objects. It worked fine in the past, but now it gives tons of analyzer warnings.The text was updated successfully, but these errors were encountered: