-
Notifications
You must be signed in to change notification settings - Fork 28
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
co19/LanguageFeatures/Extension-types/static_analysis_extension_types_A05_t02 #2384
Comments
Ok, the test is // SharedOptions=--enable-experiment=inline-class
extension type V<T extends V<T>>(T id) {} // COMPILE_TIME_ERROR.TYPE_PARAMETER_SUPERTYPE_OF_ITS_BOUND
main() {
List<V> l = [];
// ^
// [analyzer] unspecified
// [cfe] unspecified
} @eernstg please clarify why here extension type V<T extends V<T>>(T id) {
test(T t) {
T t0 = V<T>(t); // COMPILE_TIME_ERROR.INVALID_ASSIGNMENT
}
} If |
However, it sounds like error message doesn't mention the extension type erasure, and it would probably be helpful if it did. |
…n-type dynamic test
2023-11-23 [email protected] Merge pull request dart-lang/co19#2395 from dart-lang/merge-pre-nnbd 2023-11-23 [email protected] Fixes dart-lang/co19#2390. Fix tests according to the new method/setter rules (dart-lang/co19#2392) 2023-11-23 [email protected] Fixes dart-lang/co19#2388. Add tests for the new method/setter rules. Update assertions (dart-lang/co19#2393) 2023-11-23 [email protected] Merge remote-tracking branch 'origin/pre-nnbd' into master 2023-11-22 [email protected] Fixes dart-lang/co19#2389. Add additional error expectation for analyzer (dart-lang/co19#2391) 2023-11-21 [email protected] dart-lang/co19#2342. Update nullability tests according to the new rules (dart-lang/co19#2385) 2023-11-21 [email protected] Fixes dart-lang/co19#2384. Fix not well-bound extension types. Add function-type dynamic test (dart-lang/co19#2387) Change-Id: Ic3848f6f39fd42b01bfed5feac3d922c6f5a53d5 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/338120 Reviewed-by: Erik Ernst <[email protected]> Reviewed-by: Alexander Thomas <[email protected]>
@eernstg confirmed in chat that this is a valid diagnostic.
The text was updated successfully, but these errors were encountered: