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
The following gives no strong mode errors and prints 'hello1' in DDC - adding a string and int without error.
Where is the missing runtime check? :-) @leafpetersen @jmesserly
typedef T Callback<T>(T val); class Foo<T> { T x; Callback<T> _callback; Callback<T> get callback => _callback; void set callback(Callback<T> f) { _callback = f; } } void main() { Foo<int> f = new Foo<int>(); f.callback = (x) => x + 1; Foo<Object> f2 = f; var result = f2.callback('hello'); print(result); }
The text was updated successfully, but these errors were encountered:
I believe this is a dupe of #27259
Sorry, something went wrong.
No branches or pull requests
The following gives no strong mode errors and prints 'hello1' in DDC - adding a string and int without error.
Where is the missing runtime check? :-) @leafpetersen @jmesserly
The text was updated successfully, but these errors were encountered: