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

Unified Diff: tests/language/function_type_alias2_test.dart

Issue 10918261: Update language tests to new optional parameter syntax and semantics. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years, 3 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
Index: tests/language/function_type_alias2_test.dart
===================================================================
--- tests/language/function_type_alias2_test.dart (revision 12414)
+++ tests/language/function_type_alias2_test.dart (working copy)
@@ -1,7 +1,7 @@
// 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.
-// VMOptions=--enable_type_checks
+// VMOptions=--enable_type_checks --reject_named_argument_as_positional
//
// Dart test for function type alias with optional parameters.
@@ -32,9 +32,9 @@
Expect.isTrue(bar is f3<int>);
Expect.isFalse(baz is f1<double>);
Expect.isFalse(bar is f3<double>);
- Expect.isFalse(baz is f2);
+ Expect.isTrue(baz is f2);
Expect.isFalse(bar is f4);
- Expect.isFalse(baz is f2<int>);
+ Expect.isTrue(baz is f2<int>);
Expect.isFalse(bar is f2<int>);
A<int> a = new A<int>();
@@ -47,8 +47,8 @@
Expect.isTrue(a.bar is f3<int>);
Expect.isFalse(a.baz is f1<double>);
Expect.isFalse(a.bar is f3<double>);
- Expect.isFalse(a.baz is f2);
+ Expect.isTrue(a.baz is f2);
Expect.isFalse(a.bar is f4);
- Expect.isFalse(a.baz is f2<int>);
+ Expect.isTrue(a.baz is f2<int>);
Expect.isFalse(a.bar is f2<int>);
}

Powered by Google App Engine
This is Rietveld 408576698