blob: 7b79b67d347f254e746d5f620188e92f41e6bbba [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 Let T be the static type of e1. It is a static type warning if
* T does not have an accessible instance setter named v = unless T or a
* superinterface of T is annotated with an annotation denoting a constant
* identical to the constant @proxy deļ¬ned in dart:core.
* @description Checks that there is no static warning if the class of super in
* a super.m invocation does not have a setter named m but a superinterface
* is annotated with @proxy.
* @static-clean
* @author kaigorodov
* @note issue #16233
*/
import "../../Utils/expect.dart";
@proxy
class S {}
class C implements S {
}
main() {
Expect.throws((){
new C().m=1;
}
, (e)=>e is NoSuchMethodError
);
}