We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cb67388 commit ef018b9Copy full SHA for ef018b9
LanguageFeatures/Constructor-tear-offs/tearing_off_from_typedef_A07_t01.dart
@@ -22,10 +22,17 @@ typedef AAlias1 = A<int, String>;
22
typedef AAlias2 = A;
23
typedef AAlias3 = A<Never, Null>;
24
typedef AAlias4<T> = A<T, String>;
25
+typedef AAlias5<T> = A<int, T>;
26
27
main() {
28
Expect.equals(A<int, String>.testme, AAlias1.testme);
29
+ Expect.identical(A<int, String>.testme, AAlias1.testme);
30
Expect.equals(A<dynamic, dynamic>.testme, AAlias2.testme);
31
+ Expect.identical(A<dynamic, dynamic>.testme, AAlias2.testme);
32
Expect.equals(A<Never, Null>.testme, AAlias3.testme);
33
+ Expect.identical(A<Never, Null>.testme, AAlias3.testme);
34
Expect.equals(A<int, String>.testme, AAlias4<int>.testme);
35
+ Expect.identical(A<int, String>.testme, AAlias4<int>.testme);
36
+ Expect.equals(A<int, String>.testme, AAlias5<String>.testme);
37
+ Expect.identical(A<int, String>.testme, AAlias5<String>.testme);
38
}
0 commit comments