blob: 778e612cedeacb1d516b4af174ce0f394f9cb44b [file] [log] [blame]
// Copyright (c) 2019, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
main() {
int? lateLocalInit;
int? initLateLocal(int? value) {
return lateLocalInit = value;
}
late final int? lateLocal = initLateLocal(123);
expect(null, lateLocalInit);
expect(123, lateLocal);
expect(123, lateLocalInit);
}
expect(expected, actual) {
if (expected != actual) throw 'Expected $expected, actual $actual';
}