You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: pkg/front_end/testcases/generic_metadata/alias_from_opt_in.dart.strong.expect
+43-6Lines changed: 43 additions & 6 deletions
Original file line number
Diff line number
Diff line change
@@ -32,6 +32,16 @@ library;
32
32
// void Function(List<T4>) t4d, // Error
33
33
// ^
34
34
//
35
+
// pkg/front_end/testcases/generic_metadata/alias_from_opt_in.dart:39:3: Error: A generic function type can't be used as a type argument.
36
+
// Try using a non-generic function type.
37
+
// List<T8> t8b, // Error,
38
+
// ^
39
+
//
40
+
// pkg/front_end/testcases/generic_metadata/alias_from_opt_in.dart:41:17: Error: A generic function type can't be used as a type argument.
41
+
// Try using a non-generic function type.
42
+
// void Function(List<T8>) t8d, // Error
43
+
// ^
44
+
//
35
45
// pkg/front_end/testcases/generic_metadata/alias_from_opt_in.dart:18:3: Error: Generic function type 'List<void Function<T>(T)>' used as a type argument through typedef 'T3'.
36
46
// - 'List' is from 'dart:core'.
37
47
// Try providing a non-generic function type explicitly.
@@ -56,22 +66,27 @@ library;
56
66
// void Function(List<T3>) t3d, // Error
57
67
// ^
58
68
//
59
-
// pkg/front_end/testcases/generic_metadata/alias_from_opt_in.dart:27:7: Error: Generic function type 'void Function<T>(T)' inferred as a type argument.
69
+
// pkg/front_end/testcases/generic_metadata/alias_from_opt_in.dart:47:10: Error: The argument type 'int' can't be assigned to the parameter type 'List<dynamic>'.
70
+
// - 'List' is from 'dart:core'.
71
+
// new T7(0); // Error
72
+
// ^
73
+
//
74
+
// pkg/front_end/testcases/generic_metadata/alias_from_opt_in.dart:43:7: Error: Generic function type 'void Function<T>(T)' inferred as a type argument.
60
75
// Try providing a non-generic function type explicitly.
61
76
// new T4(); // Error
62
77
// ^
63
78
//
64
-
// pkg/front_end/testcases/generic_metadata/alias_from_opt_in.dart:28:4: Error: Generic function type 'void Function<T>(T)' inferred as a type argument.
79
+
// pkg/front_end/testcases/generic_metadata/alias_from_opt_in.dart:44:4: Error: Generic function type 'void Function<T>(T)' inferred as a type argument.
65
80
// Try providing a non-generic function type explicitly.
66
81
// <T4>[]; // Error
67
82
// ^
68
83
//
69
-
// pkg/front_end/testcases/generic_metadata/alias_from_opt_in.dart:29:18: Error: Generic function type 'void Function<T>(T)' inferred as a type argument.
84
+
// pkg/front_end/testcases/generic_metadata/alias_from_opt_in.dart:45:18: Error: Generic function type 'void Function<T>(T)' inferred as a type argument.
70
85
// Try providing a non-generic function type explicitly.
71
86
// <void Function(T4)>[]; // Error
72
87
// ^
73
88
//
74
-
// pkg/front_end/testcases/generic_metadata/alias_from_opt_in.dart:30:23: Error: Generic function type 'void Function<T>(T)' inferred as a type argument.
89
+
// pkg/front_end/testcases/generic_metadata/alias_from_opt_in.dart:46:23: Error: Generic function type 'void Function<T>(T)' inferred as a type argument.
75
90
// Try providing a non-generic function type explicitly.
76
91
// <void Function(List<T4>)>[]; // Error
77
92
// ^
@@ -82,11 +97,18 @@ import "alias_from_opt_in_lib.dart" as ali;
ali::ExtensionType|<dynamic>(invalid-expression "pkg/front_end/testcases/generic_metadata/alias_from_opt_in.dart:47:10: Error: The argument type 'int' can't be assigned to the parameter type 'List<dynamic>'.
0 commit comments