blob: 8614ad3870592e77782704bf6c6959347f74ce0e [file] [log] [blame]
// Copyright (c) 2011, 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.
/// @assertion It is a compile error if m is a method and m' is a getter, or
/// if m is a getter and m' is a method.
/// @description Checks that there is a compile error if class has a getter
/// and its superinterface has a method with the same name
/// @author
class A {
int m() {
return 1;
class C implements A {
int get m => 0;
// ^
// [analyzer] unspecified
// [cfe] unspecified
main() {
C c = new C();