5014aebb8d
Fixes #30695. Change-Id: I7935f8d1895e47477ddb1291809efb246c92b913 Reviewed-on: https://dart-review.googlesource.com/5960 Reviewed-by: Konstantin Shcheglov <scheglov@google.com>
15 lines
323 B
Dart
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() {}
|