@@ -2,48 +2,64 @@ library /*isNonNullableByDefault*/;
2
2
//
3
3
// Problems in library:
4
4
//
5
- // pkg/front_end/testcases/records/restricted_object_member_names.dart:14:7: Error: Record field names can't be the same as a member from 'Object'.
5
+ // pkg/front_end/testcases/records/restricted_object_member_names.dart:5:6: Error: Record field names can't be the same as a member from 'Object'.
6
+ // (int hashCode,) foo1() => throw 0; // Error.
7
+ // ^^^^^^^^
8
+ //
9
+ // pkg/front_end/testcases/records/restricted_object_member_names.dart:6:6: Error: Record field names can't be the same as a member from 'Object'.
10
+ // (int runtimeType,) foo2() => throw 0; // Error.
11
+ // ^^^^^^^^^^^
12
+ //
13
+ // pkg/front_end/testcases/records/restricted_object_member_names.dart:7:6: Error: Record field names can't be the same as a member from 'Object'.
14
+ // (int noSuchMethod,) foo3() => throw 0; // Error.
15
+ // ^^^^^^^^^^^^
16
+ //
17
+ // pkg/front_end/testcases/records/restricted_object_member_names.dart:8:6: Error: Record field names can't be the same as a member from 'Object'.
18
+ // (int toString,) foo4() => throw 0; // Error.
19
+ // ^^^^^^^^
20
+ //
21
+ // pkg/front_end/testcases/records/restricted_object_member_names.dart:9:7: Error: Record field names can't be the same as a member from 'Object'.
6
22
// ({int hashCode}) foo5() => throw 0; // Error.
7
23
// ^^^^^^^^
8
24
//
9
- // pkg/front_end/testcases/records/restricted_object_member_names.dart:15 :7: Error: Record field names can't be the same as a member from 'Object'.
25
+ // pkg/front_end/testcases/records/restricted_object_member_names.dart:10 :7: Error: Record field names can't be the same as a member from 'Object'.
10
26
// ({int runtimeType}) foo6() => throw 0; // Error.
11
27
// ^^^^^^^^^^^
12
28
//
13
- // pkg/front_end/testcases/records/restricted_object_member_names.dart:16 :7: Error: Record field names can't be the same as a member from 'Object'.
29
+ // pkg/front_end/testcases/records/restricted_object_member_names.dart:11 :7: Error: Record field names can't be the same as a member from 'Object'.
14
30
// ({int noSuchMethod}) foo7() => throw 0; // Error.
15
31
// ^^^^^^^^^^^^
16
32
//
17
- // pkg/front_end/testcases/records/restricted_object_member_names.dart:17 :7: Error: Record field names can't be the same as a member from 'Object'.
33
+ // pkg/front_end/testcases/records/restricted_object_member_names.dart:12 :7: Error: Record field names can't be the same as a member from 'Object'.
18
34
// ({int toString}) foo8() => throw 0; // Error.
19
35
// ^^^^^^^^
20
36
//
21
- // pkg/front_end/testcases/records/restricted_object_member_names.dart:18 :12: Error: Record field names can't be the same as a member from 'Object'.
37
+ // pkg/front_end/testcases/records/restricted_object_member_names.dart:13 :12: Error: Record field names can't be the same as a member from 'Object'.
22
38
// foo9() => (hashCode: 1); // Error.
23
39
// ^^^^^^^^
24
40
//
25
- // pkg/front_end/testcases/records/restricted_object_member_names.dart:19 :13: Error: Record field names can't be the same as a member from 'Object'.
41
+ // pkg/front_end/testcases/records/restricted_object_member_names.dart:14 :13: Error: Record field names can't be the same as a member from 'Object'.
26
42
// foo10() => (runtimeType: 1); // Error.
27
43
// ^^^^^^^^^^^
28
44
//
29
- // pkg/front_end/testcases/records/restricted_object_member_names.dart:20 :13: Error: Record field names can't be the same as a member from 'Object'.
45
+ // pkg/front_end/testcases/records/restricted_object_member_names.dart:15 :13: Error: Record field names can't be the same as a member from 'Object'.
30
46
// foo11() => (noSuchMethod: 1); // Error.
31
47
// ^^^^^^^^^^^^
32
48
//
33
- // pkg/front_end/testcases/records/restricted_object_member_names.dart:21 :13: Error: Record field names can't be the same as a member from 'Object'.
49
+ // pkg/front_end/testcases/records/restricted_object_member_names.dart:16 :13: Error: Record field names can't be the same as a member from 'Object'.
34
50
// foo12() => (toString: 1); // Error.
35
51
// ^^^^^^^^
36
52
//
37
53
import self as self;
38
54
import "dart:core" as core;
39
55
40
- static method foo1() → (core::int)
56
+ static method foo1() → invalid-type
41
57
return throw 0;
42
- static method foo2() → (core::int)
58
+ static method foo2() → invalid-type
43
59
return throw 0;
44
- static method foo3() → (core::int)
60
+ static method foo3() → invalid-type
45
61
return throw 0;
46
- static method foo4() → (core::int)
62
+ static method foo4() → invalid-type
47
63
return throw 0;
48
64
static method foo5() → invalid-type
49
65
return throw 0;
@@ -65,8 +81,8 @@ static method main() → dynamic {}
65
81
66
82
67
83
Extra constant evaluation status:
68
- Evaluated: RecordLiteral @ org-dartlang-testcase:///restricted_object_member_names.dart:18 :11 -> RecordConstant(const ({hashCode: 1}))
69
- Evaluated: RecordLiteral @ org-dartlang-testcase:///restricted_object_member_names.dart:19 :12 -> RecordConstant(const ({runtimeType: 1}))
70
- Evaluated: RecordLiteral @ org-dartlang-testcase:///restricted_object_member_names.dart:20 :12 -> RecordConstant(const ({noSuchMethod: 1}))
71
- Evaluated: RecordLiteral @ org-dartlang-testcase:///restricted_object_member_names.dart:21 :12 -> RecordConstant(const ({toString: 1}))
84
+ Evaluated: RecordLiteral @ org-dartlang-testcase:///restricted_object_member_names.dart:13 :11 -> RecordConstant(const ({hashCode: 1}))
85
+ Evaluated: RecordLiteral @ org-dartlang-testcase:///restricted_object_member_names.dart:14 :12 -> RecordConstant(const ({runtimeType: 1}))
86
+ Evaluated: RecordLiteral @ org-dartlang-testcase:///restricted_object_member_names.dart:15 :12 -> RecordConstant(const ({noSuchMethod: 1}))
87
+ Evaluated: RecordLiteral @ org-dartlang-testcase:///restricted_object_member_names.dart:16 :12 -> RecordConstant(const ({toString: 1}))
72
88
Extra constant evaluation: evaluated: 12, effectively constant: 4
0 commit comments