Files
sdk/pkg/front_end/testcases/bug30695.dart
T
Paul Berry 5014aebb8d Avoid a crash when a method overrides a field.
Fixes #30695.

Change-Id: I7935f8d1895e47477ddb1291809efb246c92b913
Reviewed-on: https://dart-review.googlesource.com/5960
Reviewed-by: Konstantin Shcheglov <scheglov@google.com>
2017-09-14 21:44:58 +00:00

15 lines
323 B
Dart

// Copyright (c) 2013, 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 {
var foo = 42;
}
class B extends A {
// Note: illegal override.
foo() => 42;
}
main() {}