blob: 00cdf3e9dbb1abf132545a3be79b018e1e679ef5 [file] [log] [blame]
/*
* Copyright (c) 2015, 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 Static warnings are those errors reported by the static checker.
* They have no effect on execution
* @description Checks that static warning has no effect on execution
* @static-warning
* @author sgrekhov@unipro.ru
*/
import '../../Utils/expect.dart';
class A {
int m() => 0;
}
class C extends A {
int m(int v) => v; /// static type warning
}
main() {
C c = new C();
Expect.equals(1, c.m(1));
}