Skip to content

Commit 523257a

Browse files
chloestefantsovaCommit Queue
authored and
Commit Queue
committed
[cfe] Add license headers to the patterns testcaes
Part of #49749 Change-Id: I61cd83124083f2e017101be3ea020e04583023e3 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/267600 Reviewed-by: Johnni Winther <[email protected]> Commit-Queue: Chloe Stefantsova <[email protected]>
1 parent d43dd08 commit 523257a

File tree

179 files changed

+691
-15
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

179 files changed

+691
-15
lines changed

pkg/front_end/testcases/patterns/boolean_literal_inside_case.dart

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
// Copyright (c) 2022, the Dart project authors. Please see the AUTHORS file
2+
// for details. All rights reserved. Use of this source code is governed by a
3+
// BSD-style license that can be found in the LICENSE file.
4+
15
test(dynamic x) {
26
switch (x) {
37
case true:

pkg/front_end/testcases/patterns/boolean_literal_inside_cast.dart

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
// Copyright (c) 2022, the Dart project authors. Please see the AUTHORS file
2+
// for details. All rights reserved. Use of this source code is governed by a
3+
// BSD-style license that can be found in the LICENSE file.
4+
15
test(dynamic x) {
26
switch (x) {
37
case true as Object:
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
// Copyright (c) 2022, the Dart project authors. Please see the AUTHORS file
2+
// for details. All rights reserved. Use of this source code is governed by a
3+
// BSD-style license that can be found in the LICENSE file.
4+
15
test(dynamic x) {
26
if (x case true) {}
37
}

pkg/front_end/testcases/patterns/boolean_literal_inside_null_assert.dart

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
// Copyright (c) 2022, the Dart project authors. Please see the AUTHORS file
2+
// for details. All rights reserved. Use of this source code is governed by a
3+
// BSD-style license that can be found in the LICENSE file.
4+
15
test(dynamic x) {
26
switch (x) {
37
case true!:

pkg/front_end/testcases/patterns/boolean_literal_inside_null_check.dart

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
// Copyright (c) 2022, the Dart project authors. Please see the AUTHORS file
2+
// for details. All rights reserved. Use of this source code is governed by a
3+
// BSD-style license that can be found in the LICENSE file.
4+
15
test(dynamic x) {
26
switch (x) {
37
case true?:
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
// Copyright (c) 2022, the Dart project authors. Please see the AUTHORS file
2+
// for details. All rights reserved. Use of this source code is governed by a
3+
// BSD-style license that can be found in the LICENSE file.
4+
15
void f(x) {
26
if (x case 0 when true) {}
37
}

pkg/front_end/testcases/patterns/caseHead_withClassicPattern_guarded_insideSwitchStatement.dart

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
// Copyright (c) 2022, the Dart project authors. Please see the AUTHORS file
2+
// for details. All rights reserved. Use of this source code is governed by a
3+
// BSD-style license that can be found in the LICENSE file.
4+
15
void f(x) {
26
switch (x) {
37
case 0 when true:
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
// Copyright (c) 2022, the Dart project authors. Please see the AUTHORS file
2+
// for details. All rights reserved. Use of this source code is governed by a
3+
// BSD-style license that can be found in the LICENSE file.
4+
15
void f(x) {
26
if (x case 0 as int when true) {}
37
}

pkg/front_end/testcases/patterns/caseHead_withNewPattern_guarded_insideSwitchStatement.dart

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
// Copyright (c) 2022, the Dart project authors. Please see the AUTHORS file
2+
// for details. All rights reserved. Use of this source code is governed by a
3+
// BSD-style license that can be found in the LICENSE file.
4+
15
void f(x) {
26
switch (x) {
37
case 0 as int when true:

pkg/front_end/testcases/patterns/cast_inside_case.dart

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
// Copyright (c) 2022, the Dart project authors. Please see the AUTHORS file
2+
// for details. All rights reserved. Use of this source code is governed by a
3+
// BSD-style license that can be found in the LICENSE file.
4+
15
test(dynamic x) {
26
const y = 1;
37
switch (x) {

pkg/front_end/testcases/patterns/cast_inside_extractor_pattern.dart

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
// Copyright (c) 2022, the Dart project authors. Please see the AUTHORS file
2+
// for details. All rights reserved. Use of this source code is governed by a
3+
// BSD-style license that can be found in the LICENSE file.
4+
15
class C {
26
int? f;
37
}

pkg/front_end/testcases/patterns/cast_inside_extractor_pattern_implicitly_named.dart

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
// Copyright (c) 2022, the Dart project authors. Please see the AUTHORS file
2+
// for details. All rights reserved. Use of this source code is governed by a
3+
// BSD-style license that can be found in the LICENSE file.
4+
15
class C {
26
int? f;
37
}
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
// Copyright (c) 2022, the Dart project authors. Please see the AUTHORS file
2+
// for details. All rights reserved. Use of this source code is governed by a
3+
// BSD-style license that can be found in the LICENSE file.
4+
15
test(dynamic x) {
26
if (x case var y as int) {}
37
}

pkg/front_end/testcases/patterns/cast_inside_list_pattern.dart

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
// Copyright (c) 2022, the Dart project authors. Please see the AUTHORS file
2+
// for details. All rights reserved. Use of this source code is governed by a
3+
// BSD-style license that can be found in the LICENSE file.
4+
15
test(dynamic x) {
26
switch (x) {
37
case [1 as int]:

pkg/front_end/testcases/patterns/cast_inside_logical_and_lhs.dart

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
// Copyright (c) 2022, the Dart project authors. Please see the AUTHORS file
2+
// for details. All rights reserved. Use of this source code is governed by a
3+
// BSD-style license that can be found in the LICENSE file.
4+
15
test(dynamic x) {
26
switch (x) {
37
case int? _ as double? & Object? _:

pkg/front_end/testcases/patterns/cast_inside_logical_and_rhs.dart

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
// Copyright (c) 2022, the Dart project authors. Please see the AUTHORS file
2+
// for details. All rights reserved. Use of this source code is governed by a
3+
// BSD-style license that can be found in the LICENSE file.
4+
15
test(dynamic x) {
26
switch (x) {
37
case int? _ & double? _ as Object?:

pkg/front_end/testcases/patterns/cast_inside_logical_or_lhs.dart

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
// Copyright (c) 2022, the Dart project authors. Please see the AUTHORS file
2+
// for details. All rights reserved. Use of this source code is governed by a
3+
// BSD-style license that can be found in the LICENSE file.
4+
15
test(dynamic x) {
26
switch (x) {
37
case int? _ as double? | Object? _:

pkg/front_end/testcases/patterns/cast_inside_logical_or_rhs.dart

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
// Copyright (c) 2022, the Dart project authors. Please see the AUTHORS file
2+
// for details. All rights reserved. Use of this source code is governed by a
3+
// BSD-style license that can be found in the LICENSE file.
4+
15
test(dynamic x) {
26
switch (x) {
37
case int? _ | double? _ as Object?:

pkg/front_end/testcases/patterns/cast_inside_map_pattern.dart

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
// Copyright (c) 2022, the Dart project authors. Please see the AUTHORS file
2+
// for details. All rights reserved. Use of this source code is governed by a
3+
// BSD-style license that can be found in the LICENSE file.
4+
15
test(dynamic x) {
26
switch (x) {
37
case {'a': 1 as int}:

pkg/front_end/testcases/patterns/cast_inside_parenthesized_pattern.dart

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
// Copyright (c) 2022, the Dart project authors. Please see the AUTHORS file
2+
// for details. All rights reserved. Use of this source code is governed by a
3+
// BSD-style license that can be found in the LICENSE file.
4+
15
test(dynamic x) {
26
switch (x) {
37
case (1 as int):

pkg/front_end/testcases/patterns/cast_inside_record_pattern_implicitly_named.dart

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
// Copyright (c) 2022, the Dart project authors. Please see the AUTHORS file
2+
// for details. All rights reserved. Use of this source code is governed by a
3+
// BSD-style license that can be found in the LICENSE file.
4+
15
test(dynamic x) {
26
switch (x) {
37
case (: var n as int, 2):

pkg/front_end/testcases/patterns/cast_inside_record_pattern_named.dart

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
// Copyright (c) 2022, the Dart project authors. Please see the AUTHORS file
2+
// for details. All rights reserved. Use of this source code is governed by a
3+
// BSD-style license that can be found in the LICENSE file.
4+
15
test(dynamic x) {
26
switch (x) {
37
case (n: 1 as int, 2):

pkg/front_end/testcases/patterns/cast_inside_record_pattern_unnamed.dart

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
// Copyright (c) 2022, the Dart project authors. Please see the AUTHORS file
2+
// for details. All rights reserved. Use of this source code is governed by a
3+
// BSD-style license that can be found in the LICENSE file.
4+
15
test(dynamic x) {
26
switch (x) {
37
case (1 as int, 2):

pkg/front_end/testcases/patterns/constant_identifier_inside_case.dart

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
// Copyright (c) 2022, the Dart project authors. Please see the AUTHORS file
2+
// for details. All rights reserved. Use of this source code is governed by a
3+
// BSD-style license that can be found in the LICENSE file.
4+
15
test(dynamic x) {
26
const y = 1;
37
switch (x) {

pkg/front_end/testcases/patterns/constant_identifier_inside_cast.dart

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
// Copyright (c) 2022, the Dart project authors. Please see the AUTHORS file
2+
// for details. All rights reserved. Use of this source code is governed by a
3+
// BSD-style license that can be found in the LICENSE file.
4+
15
test(dynamic x) {
26
const y = 1;
37
switch (x) {

pkg/front_end/testcases/patterns/constant_identifier_inside_if_case.dart

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
// Copyright (c) 2022, the Dart project authors. Please see the AUTHORS file
2+
// for details. All rights reserved. Use of this source code is governed by a
3+
// BSD-style license that can be found in the LICENSE file.
4+
15
test(dynamic x) {
26
const y = 1;
37
if (x case y) {}

pkg/front_end/testcases/patterns/constant_identifier_inside_null_assert.dart

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
// Copyright (c) 2022, the Dart project authors. Please see the AUTHORS file
2+
// for details. All rights reserved. Use of this source code is governed by a
3+
// BSD-style license that can be found in the LICENSE file.
4+
15
test(dynamic x) {
26
const y = 1;
37
switch (x) {

pkg/front_end/testcases/patterns/constant_identifier_inside_null_check.dart

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
// Copyright (c) 2022, the Dart project authors. Please see the AUTHORS file
2+
// for details. All rights reserved. Use of this source code is governed by a
3+
// BSD-style license that can be found in the LICENSE file.
4+
15
test(dynamic x) {
26
const y = 1;
37
switch (x) {

pkg/front_end/testcases/patterns/double_literal_inside_case.dart

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
// Copyright (c) 2022, the Dart project authors. Please see the AUTHORS file
2+
// for details. All rights reserved. Use of this source code is governed by a
3+
// BSD-style license that can be found in the LICENSE file.
4+
15
test(dynamic x) {
26
switch (x) {
37
case 1.0:

pkg/front_end/testcases/patterns/double_literal_inside_case.dart.strong.expect

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ library /*isNonNullableByDefault*/;
22
//
33
// Problems in library:
44
//
5-
// pkg/front_end/testcases/patterns/double_literal_inside_case.dart:3:10: Error: Case expression '1.0' does not have a primitive operator '=='.
5+
// pkg/front_end/testcases/patterns/double_literal_inside_case.dart:7:10: Error: Case expression '1.0' does not have a primitive operator '=='.
66
// case 1.0:
77
// ^
88
//

pkg/front_end/testcases/patterns/double_literal_inside_case.dart.strong.transformed.expect

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ library /*isNonNullableByDefault*/;
22
//
33
// Problems in library:
44
//
5-
// pkg/front_end/testcases/patterns/double_literal_inside_case.dart:3:10: Error: Case expression '1.0' does not have a primitive operator '=='.
5+
// pkg/front_end/testcases/patterns/double_literal_inside_case.dart:7:10: Error: Case expression '1.0' does not have a primitive operator '=='.
66
// case 1.0:
77
// ^
88
//

pkg/front_end/testcases/patterns/double_literal_inside_case.dart.weak.expect

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ library /*isNonNullableByDefault*/;
22
//
33
// Problems in library:
44
//
5-
// pkg/front_end/testcases/patterns/double_literal_inside_case.dart:3:10: Error: Case expression '1.0' does not have a primitive operator '=='.
5+
// pkg/front_end/testcases/patterns/double_literal_inside_case.dart:7:10: Error: Case expression '1.0' does not have a primitive operator '=='.
66
// case 1.0:
77
// ^
88
//

pkg/front_end/testcases/patterns/double_literal_inside_case.dart.weak.modular.expect

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ library /*isNonNullableByDefault*/;
22
//
33
// Problems in library:
44
//
5-
// pkg/front_end/testcases/patterns/double_literal_inside_case.dart:3:10: Error: Case expression '1.0' does not have a primitive operator '=='.
5+
// pkg/front_end/testcases/patterns/double_literal_inside_case.dart:7:10: Error: Case expression '1.0' does not have a primitive operator '=='.
66
// case 1.0:
77
// ^
88
//

pkg/front_end/testcases/patterns/double_literal_inside_case.dart.weak.transformed.expect

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ library /*isNonNullableByDefault*/;
22
//
33
// Problems in library:
44
//
5-
// pkg/front_end/testcases/patterns/double_literal_inside_case.dart:3:10: Error: Case expression '1.0' does not have a primitive operator '=='.
5+
// pkg/front_end/testcases/patterns/double_literal_inside_case.dart:7:10: Error: Case expression '1.0' does not have a primitive operator '=='.
66
// case 1.0:
77
// ^
88
//

pkg/front_end/testcases/patterns/double_literal_inside_cast.dart

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
// Copyright (c) 2022, the Dart project authors. Please see the AUTHORS file
2+
// for details. All rights reserved. Use of this source code is governed by a
3+
// BSD-style license that can be found in the LICENSE file.
4+
15
test(dynamic x) {
26
switch (x) {
37
case 1.0 as Object:
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
// Copyright (c) 2022, the Dart project authors. Please see the AUTHORS file
2+
// for details. All rights reserved. Use of this source code is governed by a
3+
// BSD-style license that can be found in the LICENSE file.
4+
15
test(dynamic x) {
26
if (x case 1.0) {}
37
}

pkg/front_end/testcases/patterns/double_literal_inside_null_assert.dart

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
// Copyright (c) 2022, the Dart project authors. Please see the AUTHORS file
2+
// for details. All rights reserved. Use of this source code is governed by a
3+
// BSD-style license that can be found in the LICENSE file.
4+
15
test(dynamic x) {
26
switch (x) {
37
case 1.0!:

pkg/front_end/testcases/patterns/double_literal_inside_null_check.dart

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
// Copyright (c) 2022, the Dart project authors. Please see the AUTHORS file
2+
// for details. All rights reserved. Use of this source code is governed by a
3+
// BSD-style license that can be found in the LICENSE file.
4+
15
test(dynamic x) {
26
switch (x) {
37
case 1.0?:

pkg/front_end/testcases/patterns/error_recovery_after_question_suffix_in_expression.dart

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
// Copyright (c) 2022, the Dart project authors. Please see the AUTHORS file
2+
// for details. All rights reserved. Use of this source code is governed by a
3+
// BSD-style license that can be found in the LICENSE file.
4+
15
f() {
26
try {
37
true ? : 2;

pkg/front_end/testcases/patterns/error_recovery_after_question_suffix_in_expression.dart.strong.expect

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ library /*isNonNullableByDefault*/;
22
//
33
// Problems in library:
44
//
5-
// pkg/front_end/testcases/patterns/error_recovery_after_question_suffix_in_expression.dart:3:13: Error: Expected an identifier, but got ':'.
5+
// pkg/front_end/testcases/patterns/error_recovery_after_question_suffix_in_expression.dart:7:13: Error: Expected an identifier, but got ':'.
66
// Try inserting an identifier before ':'.
77
// true ? : 2;
88
// ^
@@ -12,7 +12,7 @@ import "dart:core" as core;
1212

1313
static method f() → dynamic {
1414
try {
15-
true ?{invalid-type} invalid-expression "pkg/front_end/testcases/patterns/error_recovery_after_question_suffix_in_expression.dart:3:13: Error: This couldn't be parsed.
15+
true ?{invalid-type} invalid-expression "pkg/front_end/testcases/patterns/error_recovery_after_question_suffix_in_expression.dart:7:13: Error: This couldn't be parsed.
1616
true ? : 2;
1717
^" : 2;
1818
}

pkg/front_end/testcases/patterns/error_recovery_after_question_suffix_in_expression.dart.strong.transformed.expect

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ library /*isNonNullableByDefault*/;
22
//
33
// Problems in library:
44
//
5-
// pkg/front_end/testcases/patterns/error_recovery_after_question_suffix_in_expression.dart:3:13: Error: Expected an identifier, but got ':'.
5+
// pkg/front_end/testcases/patterns/error_recovery_after_question_suffix_in_expression.dart:7:13: Error: Expected an identifier, but got ':'.
66
// Try inserting an identifier before ':'.
77
// true ? : 2;
88
// ^
@@ -12,7 +12,7 @@ import "dart:core" as core;
1212

1313
static method f() → dynamic {
1414
try {
15-
true ?{invalid-type} invalid-expression "pkg/front_end/testcases/patterns/error_recovery_after_question_suffix_in_expression.dart:3:13: Error: This couldn't be parsed.
15+
true ?{invalid-type} invalid-expression "pkg/front_end/testcases/patterns/error_recovery_after_question_suffix_in_expression.dart:7:13: Error: This couldn't be parsed.
1616
true ? : 2;
1717
^" : 2;
1818
}

pkg/front_end/testcases/patterns/error_recovery_after_question_suffix_in_expression.dart.weak.expect

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ library /*isNonNullableByDefault*/;
22
//
33
// Problems in library:
44
//
5-
// pkg/front_end/testcases/patterns/error_recovery_after_question_suffix_in_expression.dart:3:13: Error: Expected an identifier, but got ':'.
5+
// pkg/front_end/testcases/patterns/error_recovery_after_question_suffix_in_expression.dart:7:13: Error: Expected an identifier, but got ':'.
66
// Try inserting an identifier before ':'.
77
// true ? : 2;
88
// ^
@@ -12,7 +12,7 @@ import "dart:core" as core;
1212

1313
static method f() → dynamic {
1414
try {
15-
true ?{invalid-type} invalid-expression "pkg/front_end/testcases/patterns/error_recovery_after_question_suffix_in_expression.dart:3:13: Error: This couldn't be parsed.
15+
true ?{invalid-type} invalid-expression "pkg/front_end/testcases/patterns/error_recovery_after_question_suffix_in_expression.dart:7:13: Error: This couldn't be parsed.
1616
true ? : 2;
1717
^" : 2;
1818
}

pkg/front_end/testcases/patterns/error_recovery_after_question_suffix_in_expression.dart.weak.modular.expect

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ library /*isNonNullableByDefault*/;
22
//
33
// Problems in library:
44
//
5-
// pkg/front_end/testcases/patterns/error_recovery_after_question_suffix_in_expression.dart:3:13: Error: Expected an identifier, but got ':'.
5+
// pkg/front_end/testcases/patterns/error_recovery_after_question_suffix_in_expression.dart:7:13: Error: Expected an identifier, but got ':'.
66
// Try inserting an identifier before ':'.
77
// true ? : 2;
88
// ^
@@ -12,7 +12,7 @@ import "dart:core" as core;
1212

1313
static method f() → dynamic {
1414
try {
15-
true ?{invalid-type} invalid-expression "pkg/front_end/testcases/patterns/error_recovery_after_question_suffix_in_expression.dart:3:13: Error: This couldn't be parsed.
15+
true ?{invalid-type} invalid-expression "pkg/front_end/testcases/patterns/error_recovery_after_question_suffix_in_expression.dart:7:13: Error: This couldn't be parsed.
1616
true ? : 2;
1717
^" : 2;
1818
}

0 commit comments

Comments
 (0)