Skip to content

Commit 7c60ef1

Browse files
committed
bugfix: update ignore_function test case.
1 parent b9dbde9 commit 7c60ef1

7 files changed

+51
-7
lines changed

pkg/front_end/testcases/general/function_bad_use.dart.weak.expect

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,17 @@ library /*isNonNullableByDefault*/;
22
//
33
// Problems in library:
44
//
5-
// pkg/front_end/testcases/general/function_bad_use.dart: Error: 'Function' is a built-in identifier, could not used as a class name.
5+
// pkg/front_end/testcases/general/function_bad_use.dart:1:7: Error: 'Function' is a built-in identifier, could not used as a class name.
6+
// class Function {}
7+
// ^^^^^^^^
68
//
7-
// pkg/front_end/testcases/general/function_bad_use.dart: Error: 'Function' is a built-in identifier, could not used as a type identifier.
9+
// pkg/front_end/testcases/general/function_bad_use.dart:3:9: Error: 'Function' is a built-in identifier, could not used as a type identifier.
10+
// class C<Function> {}
11+
// ^^^^^^^^
12+
//
13+
// pkg/front_end/testcases/general/function_bad_use.dart:5:9: Error: 'Function' is a built-in identifier, could not used as a type identifier.
14+
// mixin M<Function> implements List<Function> {}
15+
// ^^^^^^^^
816
//
917
import self as self;
1018
import "dart:core" as core;

pkg/front_end/testcases/general/function_bad_use.dart.weak.outline.expect

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,17 @@ library /*isNonNullableByDefault*/;
22
//
33
// Problems in library:
44
//
5-
// pkg/front_end/testcases/general/function_bad_use.dart: Error: 'Function' is a built-in identifier, could not used as a class name.
5+
// pkg/front_end/testcases/general/function_bad_use.dart:1:7: Error: 'Function' is a built-in identifier, could not used as a class name.
6+
// class Function {}
7+
// ^^^^^^^^
68
//
7-
// pkg/front_end/testcases/general/function_bad_use.dart: Error: 'Function' is a built-in identifier, could not used as a type identifier.
9+
// pkg/front_end/testcases/general/function_bad_use.dart:3:9: Error: 'Function' is a built-in identifier, could not used as a type identifier.
10+
// class C<Function> {}
11+
// ^^^^^^^^
12+
//
13+
// pkg/front_end/testcases/general/function_bad_use.dart:5:9: Error: 'Function' is a built-in identifier, could not used as a type identifier.
14+
// mixin M<Function> implements List<Function> {}
15+
// ^^^^^^^^
816
//
917
import self as self;
1018
import "dart:core" as core;

pkg/front_end/testcases/general/function_bad_use.dart.weak.transformed.expect

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,17 @@ library /*isNonNullableByDefault*/;
22
//
33
// Problems in library:
44
//
5-
// pkg/front_end/testcases/general/function_bad_use.dart: Error: 'Function' is a built-in identifier, could not used as a class name.
5+
// pkg/front_end/testcases/general/function_bad_use.dart:1:7: Error: 'Function' is a built-in identifier, could not used as a class name.
6+
// class Function {}
7+
// ^^^^^^^^
68
//
7-
// pkg/front_end/testcases/general/function_bad_use.dart: Error: 'Function' is a built-in identifier, could not used as a type identifier.
9+
// pkg/front_end/testcases/general/function_bad_use.dart:3:9: Error: 'Function' is a built-in identifier, could not used as a type identifier.
10+
// class C<Function> {}
11+
// ^^^^^^^^
12+
//
13+
// pkg/front_end/testcases/general/function_bad_use.dart:5:9: Error: 'Function' is a built-in identifier, could not used as a type identifier.
14+
// mixin M<Function> implements List<Function> {}
15+
// ^^^^^^^^
816
//
917
import self as self;
1018
import "dart:core" as core;

pkg/front_end/testcases/general/ignore_function.dart

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,3 +18,5 @@ class B implements Function {
1818
class Function {
1919
core.bool operator ==(core.Object other) => false;
2020
}
21+
22+
main() {}

pkg/front_end/testcases/general/ignore_function.dart.weak.expect

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,11 @@
11
library;
2+
//
3+
// Problems in library:
4+
//
5+
// pkg/front_end/testcases/general/ignore_function.dart:18:7: Error: 'Function' is a built-in identifier, could not used as a class name.
6+
// class Function {
7+
// ^^^^^^^^
8+
//
29
import self as self;
310
import "dart:core" as core;
411

pkg/front_end/testcases/general/ignore_function.dart.weak.outline.expect

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,9 @@ library;
22
//
33
// Problems in library:
44
//
5-
// pkg/front_end/testcases/general/ignore_function.dart: Error: 'Function' is a built-in identifier, could not used as a class name.
5+
// pkg/front_end/testcases/general/ignore_function.dart:18:7: Error: 'Function' is a built-in identifier, could not used as a class name.
6+
// class Function {
7+
// ^^^^^^^^
68
//
79
import self as self;
810
import "dart:core" as core;
@@ -54,3 +56,5 @@ class Function extends core::Object {
5456
abstract member-signature method noSuchMethod(core::Invocation* invocation) → dynamic; -> core::Object::noSuchMethod
5557
abstract member-signature get runtimeType() → core::Type*; -> core::Object::runtimeType
5658
}
59+
static method main() → dynamic
60+
;

pkg/front_end/testcases/general/ignore_function.dart.weak.transformed.expect

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,11 @@
11
library;
2+
//
3+
// Problems in library:
4+
//
5+
// pkg/front_end/testcases/general/ignore_function.dart:18:7: Error: 'Function' is a built-in identifier, could not used as a class name.
6+
// class Function {
7+
// ^^^^^^^^
8+
//
29
import self as self;
310
import "dart:core" as core;
411

0 commit comments

Comments
 (0)