| Index: tests/language/src/CompileTimeConstantPTest.dart
|
| diff --git a/tests/language/src/CompileTimeConstantPTest.dart b/tests/language/src/CompileTimeConstantPTest.dart
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..a0ff240865f126781264a7375416950bab92f910
|
| --- /dev/null
|
| +++ b/tests/language/src/CompileTimeConstantPTest.dart
|
| @@ -0,0 +1,20 @@
|
| +// Copyright (c) 2012, 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 {
|
| + const A(
|
| + this.x /// 01: compile-time error
|
| + );
|
| + final x = null;
|
| +}
|
| +
|
| +class B extends A {
|
| + const B();
|
| +}
|
| +
|
| +var b = const B();
|
| +
|
| +main() {
|
| + Expect.equals(null, b.x);
|
| +}
|
|
|