blob: 048ae94b2d922011df22b03ea18ffe4177c198f5 [file] [log] [blame]
// Copyright (c) 2022, 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.
// @dart=2.16
import 'dart:ffi';
class Foo implements Finalizable {}
void main() {
late Foo foo;
// Generates a reachability fence between the constructor call and assignment.
// That reachability fence should not trigger a late initialization error.
foo = Foo();
print(foo);
}