Files
sdk/pkg/front_end/testcases/many_errors.dart
T
Peter von der Ahé 53b372f575 Test that shows leaking synthetic nodes
Change-Id: I8f68795380c1d6963203f9356244d2599be6c9cb
Reviewed-on: https://dart-review.googlesource.com/c/90002
Reviewed-by: Dmitry Stefantsov <dmitryas@google.com>
2019-01-24 18:55:44 +00:00

33 lines
535 B
Dart

// 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.
class A {
final x = null;
const A.named1() sync* {}
const A.named2() : x = new Object();
}
external foo(String x) {
return x.length;
}
class B {}
class C {
B b;
}
abstract class AbstractClass {
const AbstractClass.id();
}
m() {
const AbstractClass.id();
(new C()?.b ??= new B()).b;
}
main() {}