36641368bb
This changes ast-to-text to mark legacy libraries instead of non-nullable-by-default libraries. TEST=existing Change-Id: Ib01147e4ef48c2c5b2ffc6b23547998344dfdf2e Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/307121 Commit-Queue: Johnni Winther <johnniwinther@google.com> Reviewed-by: Chloe Stefantsova <cstefantsova@google.com> Reviewed-by: Alexander Markov <alexmarkov@google.com>
25 lines
723 B
Plaintext
25 lines
723 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 new core::StateError::•("Pattern matching error");
|
|
}
|
|
}
|
|
|
|
|
|
Extra constant evaluation status:
|
|
Evaluated: Not @ org-dartlang-testcase:///patternVariableDeclarationStatement_disallowsLate.dart:6:13 -> BoolConstant(false)
|
|
Extra constant evaluation: evaluated: 4, effectively constant: 1
|