Skip to content

Commit a81828a

Browse files
kallentuCommit Queue
authored andcommitted
[tests] Fix and move erroneous constructor tearoff dot shorthands test.
Pretty sure this isn't valid code. Moving to an error test. Bug: #59758 Change-Id: I58fc9cc00286bfae2b6093cfb5ac2c215baf344d Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/414187 Commit-Queue: Kallen Tu <[email protected]> Reviewed-by: Lasse Nielsen <[email protected]>
1 parent 2e238e9 commit a81828a

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

tests/language/dot_shorthands/constructor/constructor_error_test.dart

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,4 +42,9 @@ void main() {
4242
// ^
4343
// [analyzer] unspecified
4444
// [cfe] unspecified
45+
46+
UnnamedConstructor Function() ctorTearoff = .new;
47+
// ^
48+
// [analyzer] unspecified
49+
// [cfe] unspecified
4550
}

tests/language/dot_shorthands/constructor/constructor_test.dart

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,8 +57,6 @@ void main() {
5757
ConstructorExt? ctorExtNullable5 = .constNamed(x: x);
5858
ConstructorExt? ctorExtNullable6 = .constOptional(x);
5959

60-
UnnamedConstructor Function() ctorTearoff = .new;
61-
6260
// Parameter context type.
6361
ConstructorClassContext(.new(1));
6462
ConstructorClassContext.named(x: .optional(1));

0 commit comments

Comments
 (0)