blob: dbd5cfe6440e0b38f524468720fd60c3294a713e [file] [log] [blame]
// Copyright (c) 2019, 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.
/// Overriding method with field.
class A {
foo() {}
class B extends A {
var foo;
// ^^^
// [cfe] Can't declare a member that conflicts with an inherited one.
main() {