4bf22f41f3
Change-Id: Ideee9917b2e5b819672c7e441d051f9bc57c86c6 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/366342 Reviewed-by: Jens Johansen <jensj@google.com> Commit-Queue: Johnni Winther <johnniwinther@google.com>
20 lines
517 B
Plaintext
20 lines
517 B
Plaintext
library;
|
|
//
|
|
// 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{for-error-handling} new core::StateError::•("Pattern matching error");
|
|
}
|
|
}
|