blob: 0b3c5169e78872bee7e9619887633c2cc26d3c31 [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 The name of a setter is obtained by appending the string ‘=’
* to the identifier given in its signature. Hence, a setter name can never
* conflict with, override or be overridden by a getter or method.
* @description Checks that there is a compile-time error if a class has
* an explicitly defined setter inherited from a superclass and an instance
* method with the same name.
* @compile-error
* @author iefremov
class A {
var _foo;
set foo(var v) {_foo = v;}
class C extends A {
foo(value) {}
main() {
C c = new C();; = 1;