mirror of
https://github.com/dart-lang/sdk
synced 2024-09-18 22:01:19 +00:00
528a7ce3d9
Update language tests and mark them as failing in dart2js as appropriate. Mark a few co19 tests as failing. Mark a dart2js test as failing due to unresolved types. Unfortunately, https://codereview.chromium.org/53583003/ was uncomplete and missed a few mappings of malformed types to dynamic. R=hausner@google.com Review URL: https://codereview.chromium.org//57133004 git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@29924 260f80e4-7a28-3924-810f-c04153c831b5
25 lines
584 B
Dart
25 lines
584 B
Dart
// Copyright (c) 2012, 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.
|
|
|
|
// It is a static warning if a method m1 overrides a method m2 and has a
|
|
// different number of required parameters.
|
|
|
|
class A {
|
|
foo() {}
|
|
}
|
|
|
|
class B extends A {
|
|
foo(a) {} /// 00: static type warning
|
|
}
|
|
|
|
main() {
|
|
B instance = new B();
|
|
try {
|
|
instance.foo();
|
|
} on NoSuchMethodError catch (error) { /// 00: continued
|
|
} finally {
|
|
}
|
|
print("Success");
|
|
}
|