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

Unified Diff: tests/language/not_enough_positional_arguments_test.dart

Issue 23460006: Update language status and rewrite a test (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 4 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') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/language/not_enough_positional_arguments_test.dart
diff --git a/tests/language/not_enough_positional_arguments_test.dart b/tests/language/not_enough_positional_arguments_test.dart
index a49f864cfe7d5853dd5e9aea8e0b3689d0ae57d7..b6cb3b505fda2b6938e3c7ead90d5b9e5bb366c0 100644
--- a/tests/language/not_enough_positional_arguments_test.dart
+++ b/tests/language/not_enough_positional_arguments_test.dart
@@ -5,17 +5,48 @@
foo(a, [b]) {
}
+bar(a, {b}) {
+}
+
class A {
A(a, [b]);
}
class B {
B()
- : super(b: 1) /// 01: runtime error
+ : super(b: 1) /// 01: runtime error
ahe 2013/08/27 17:14:50 This is not going to work. When this line is remo
Søren Gjesse 2013/08/28 08:11:05 Done.
+ ;
+}
+
+class C extends A {
+ C()
+ : super(b: 1) /// 02: runtime error
ahe 2013/08/27 17:14:50 Ditto.
Søren Gjesse 2013/08/28 08:11:05 Done.
+ ;
+}
+
+class D {
+ D(a, {b});
+}
+
+class E {
+ E()
+ : super(b: 1) /// 04: runtime error
+ ;
+}
+
+class F extends D {
+ F()
+ : super(b: 1) /// 05: runtime error
kustermann 2013/08/27 16:33:06 In the 'not_enough_positional_arguments_test/none'
Søren Gjesse 2013/08/28 08:11:05 Done.
;
}
main() {
- new B(); /// 01: continued
- foo(b: 1); /// 02: runtime error
+ new A(b: 1); /// 00: runtime error
+ new B(); /// 01: continued
ahe 2013/08/27 17:14:50 I think you should be able to get rid of all the c
Søren Gjesse 2013/08/28 08:11:05 Done.
+ new C(); /// 02: continued
+ new D(b: 1); /// 03: runtime error
+ new E(); /// 04: continued
+ new F(); /// 05: continued
+ foo(b: 1); /// 06: runtime error
+ bar(b: 1); /// 07: runtime error
}
« no previous file with comments | « tests/language/language_dart2js.status ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698