Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(107)

Unified Diff: tests/language/method_override2_test.dart

Issue 18531006: Update test and status file. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Revert test-change. Created 7 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « tests/language/language_dart2js.status ('k') | tests/language/method_override3_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/language/method_override2_test.dart
diff --git a/tests/language/method_override2_test.dart b/tests/language/method_override2_test.dart
index 75fb53ad0eeb245fcf44f2f72804676325f89a95..1b4d8612caa610249e4bc1ce9460d3edfc8b3d41 100644
--- a/tests/language/method_override2_test.dart
+++ b/tests/language/method_override2_test.dart
@@ -5,25 +5,25 @@
// Checks that an overriding method has compatible parameters.
abstract class I {
- m(x, {a, b});
+ m({a, b});
}
abstract class J extends I { }
abstract class K extends J {
- m({c, d}); /// 00: compile-time error
+ m({c, d}); /// 00: static type warning
}
class C implements I {
- m(x, {a, b}) {
- print("$x $a $b");
+ m({a, b}) {
+ print("$a $b");
}
}
class D
- extends C /// 01: compile-time error
- implements I /// 02: compile-time error
- implements J /// 03: compile-time error
+ extends C /// 01: static type warning
+ implements I /// 02: static type warning
+ implements J /// 03: static type warning
{
m({c, d}) {
print("$c $d");
@@ -33,7 +33,7 @@ class D
int main() {
var c = new C();
- c.m(1, a: "hello", b: "world");
+ c.m(a: "hello", b: "world");
var d = new D();
d.m(c: "hello", d: "world");
print("${c is I} ${d is I} ${d is I} ${d is J}");
« no previous file with comments | « tests/language/language_dart2js.status ('k') | tests/language/method_override3_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698