9d1a307954
Flutter gallery in release mode: AOT snapshot size arm64 -0.22%, arm -0.21% instructions size arm64 -0.46%, arm -0.4% TEST=existing tests Fixes https://github.com/dart-lang/sdk/issues/44391 Change-Id: I4733e91ecf4601c0bcde725cf9e97f5db0b8bc13 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/175821 Commit-Queue: Alexander Markov <alexmarkov@google.com> Reviewed-by: Johnni Winther <johnniwinther@google.com> Reviewed-by: Vyacheslav Egorov <vegorov@google.com>
33 lines
935 B
Plaintext
33 lines
935 B
Plaintext
library /*isNonNullableByDefault*/;
|
|
//
|
|
// Problems in library:
|
|
//
|
|
// pkg/front_end/testcases/nnbd/issue40093.dart:6:8: Error: Can't have modifier 'late' here.
|
|
// Try removing 'late'.
|
|
// for (late int i = 0; i < 10; ++i) {
|
|
// ^^^^
|
|
//
|
|
// pkg/front_end/testcases/nnbd/issue40093.dart:9:8: Error: Can't have modifier 'late' here.
|
|
// Try removing 'late'.
|
|
// for (late int i in <int>[]) {
|
|
// ^^^^
|
|
//
|
|
import self as self;
|
|
import "dart:core" as core;
|
|
|
|
static method error() → dynamic {
|
|
for (core::int i = 0; i.{core::num::<}(10); i = i.{core::num::+}(1)) {
|
|
core::print(i);
|
|
}
|
|
{
|
|
core::Iterator<core::int> :sync-for-iterator = core::_GrowableList::•<core::int>(0).{core::Iterable::iterator};
|
|
for (; :sync-for-iterator.{core::Iterator::moveNext}(); ) {
|
|
core::int i = :sync-for-iterator.{core::Iterator::current};
|
|
{
|
|
core::print(i);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
static method main() → dynamic {}
|