Skip to content

Commit 00a28b5

Browse files
eernstgcommit-bot@chromium.org
authored andcommitted
Fix test with syntax error
This CL changes `late x;` to `late var x;` in a test. Apparently, this syntax was considered correct and the front end and analyzer accept it. However, it is a syntax error, and this CL corrects it. The fact that the tools accept it is reported as SDK issue #43811. Change-Id: Iaa2fe56fe99d3702345368a54a7389a59288515c Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/167804 Reviewed-by: Nate Bosch <[email protected]> Commit-Queue: Erik Ernst <[email protected]>
1 parent e02085b commit 00a28b5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/language/nnbd/inference/late_variable_type_for_promotion_test.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ void nullableUninitializedWithType() {
9595
}
9696

9797
void uninitializedUntyped() {
98-
late x;
98+
late var x;
9999
x = 0;
100100
x.expectStaticType<Exactly<dynamic>>();
101101
// Attempting to promote to `int?` should be ok, since `int?` is a subtype of

0 commit comments

Comments
 (0)