mirror of
https://github.com/dart-lang/sdk
synced 2024-09-16 03:47:13 +00:00
23361e89bd
Fixes #31170. Bug: 31170 Change-Id: I926384a3dff21255439070065ca4083c22e8fc4c Reviewed-on: https://dart-review.googlesource.com/36460 Reviewed-by: Peter von der Ahé <ahe@google.com> Commit-Queue: Jens Johansen <jensj@google.com>
17 lines
353 B
Dart
17 lines
353 B
Dart
// Copyright (c) 2018, 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 {
|
|
B(); //# 01: compile-time error
|
|
static const field = const B();
|
|
}
|
|
|
|
class B {
|
|
const B();
|
|
}
|
|
|
|
main() {
|
|
print(A.field);
|
|
}
|