blob: 67a52959ac2a947d8702438181a06649842e0982 [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 static type warning if S does not have an accessible
* instance member named m unless S or a superinterface of S is annotated
* with an annotation denoting a constant identical to the constant @proxy
* deļ¬ned in dart:core.
* @description Checks that it is a static type warning if S does not have an instance member named m.
* @static-warning
* @author msyabro
* @reviewer kaigorodov
*/
import "../../../Utils/expect.dart";
class S {}
class A extends S {
test() {
try {
super.m(); /// static type warning - see "Super invocation"
Expect.fail("NoSuchMethodError is expected");
} on NoSuchMethodError catch(e) {}
}
}
main() {
new A().test();
}