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

Unified Diff: tests/language/parameter_initializer_test.dart

Issue 10541095: Disallow underscores in named formal parameters. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: # Created 8 years, 6 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/parameter_initializer6_negative_test.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/language/parameter_initializer_test.dart
diff --git a/tests/language/parameter_initializer_test.dart b/tests/language/parameter_initializer_test.dart
index 022013c8b210deebfdb70bb48dc2990d22d13ab4..565f710ee5d25b91275ac4255abf347cffbdb6e0 100644
--- a/tests/language/parameter_initializer_test.dart
+++ b/tests/language/parameter_initializer_test.dart
@@ -1,4 +1,4 @@
-// Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file
+// 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.
@@ -20,12 +20,6 @@ class ParameterInitializerTest {
obj = new Foo.optional();
Expect.equals(5, obj.x);
- obj = new Foo.optional_private(_y: 222);
- Expect.equals(222, obj._y);
-
- obj = new Foo.optional_private();
- Expect.equals(77, obj._y);
-
obj = new Foo(1);
Expect.equals(2, obj.x);
@@ -48,10 +42,8 @@ class Foo {
Foo.supertype(Object this.x) {}
Foo.subtype(int this.x) {}
Foo.optional([this.x = 5]) {}
- Foo.optional_private([this._y = 77]) {}
num x;
- num _y;
}
class SubFoo extends Foo {
« no previous file with comments | « tests/language/parameter_initializer6_negative_test.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698