-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Dart fails with class A<X extends FutureOr<A<X>>> #34948
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
Comments
Seems like the following code fails with dart because of the same reason: import "dart:async";
class A<X extends A<X>> {}
class B<X extends A<A<X>>> {}
main() {} Sample output is:
So please let me know if I should file a separate issue about this. |
Filing on language to clarify behavior and/or whether this is an intended breaking change. |
This bug is still reproducible with the recent dart version: |
The fix landed as 499bae0. It seems that this change should be in
|
Closing: The example program is accepted by |
Dart SDK Version: 2.1.0-dev.8.0
OS: Windows 10 (64 bit)
This is a regression in dev.8.0, dart passes with the same code sample with dev.7.1.
Please note that there is an opened bug #34264 regarding dartanalyzer.
Here is a sample code example:
Still analyzer fails here because of #34264.
But in the recent dart version dart started to fail here too, sample output is:
The text was updated successfully, but these errors were encountered: