8d16c1dc87
Bug: https://github.com/dart-lang/sdk/issues/50035 Change-Id: Id706ff0afab3f14d817fbf99112f772d1f1f7817 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/292800 Commit-Queue: Paul Berry <paulberry@google.com> Reviewed-by: Johnni Winther <johnniwinther@google.com>
20 lines
524 B
Plaintext
20 lines
524 B
Plaintext
library /*isNonNullableByDefault*/;
|
|
//
|
|
// Problems in library:
|
|
//
|
|
// pkg/front_end/testcases/patterns/patternVariableDeclarationStatement_disallowsLate.dart:6:3: Error: A pattern variable declaration may not use the `late` keyword.
|
|
// Try removing the keyword `late`.
|
|
// late var (_) = x;
|
|
// ^^^^
|
|
//
|
|
import self as self;
|
|
import "dart:core" as core;
|
|
|
|
static method f(dynamic x) → dynamic {
|
|
{
|
|
final synthesized dynamic #0#0 = x;
|
|
if(!true)
|
|
throw new core::StateError::•("Pattern matching error");
|
|
}
|
|
}
|