dart-sdk/tests/language_2/method_not_found_test.dart
Jens Johansen 23361e89bd [fasta] Fix crash with "unsupported operation 'name'"
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>
2018-01-30 13:08:09 +00:00

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);
}