| Index: tests/language/src/BadNamedParametersTest.dart
|
| diff --git a/tests/language/src/BadNamedParametersTest.dart b/tests/language/src/BadNamedParametersTest.dart
|
| index 16cbb91015cbc0f3ab3f19137cd770b94e245c70..db255213d544a00a9224c42c2a973d023dbcc6a4 100644
|
| --- a/tests/language/src/BadNamedParametersTest.dart
|
| +++ b/tests/language/src/BadNamedParametersTest.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.
|
| // Dart test program for testing bad named parameters.
|
| @@ -21,35 +21,40 @@ class BadNamedParametersTest {
|
| bool caught;
|
| try {
|
| caught = false;
|
| - np.f42(10, 25, b:25); // Parameter b passed twice.
|
| + // Parameter b passed twice.
|
| + np.f42(10, 25, b:25); /// static type error
|
| } catch (NoSuchMethodException e) {
|
| caught = true;
|
| }
|
| Expect.equals(true, caught);
|
| try {
|
| caught = false;
|
| - np.f42(10, 25, x:99); // Parameter x does not exist.
|
| + // Parameter x does not exist.
|
| + np.f42(10, 25, x:99); /// static type error
|
| } catch (NoSuchMethodException e) {
|
| caught = true;
|
| }
|
| Expect.equals(true, caught);
|
| try {
|
| caught = false;
|
| - np.f52(10, b:25, b1:99, c:35); // Parameter b1 does not exist.
|
| + // Parameter b1 does not exist.
|
| + np.f52(10, b:25, b1:99, c:35); /// static type error
|
| } catch (NoSuchMethodException e) {
|
| caught = true;
|
| }
|
| Expect.equals(true, caught);
|
| try {
|
| caught = false;
|
| - np.f42(10, 20, 30, 40); // Too many parameters.
|
| + // Too many parameters.
|
| + np.f42(10, 20, 30, 40); /// static type error
|
| } catch (NoSuchMethodException e) {
|
| caught = true;
|
| }
|
| Expect.equals(true, caught);
|
| try {
|
| caught = false;
|
| - np.f42(b:25); // Too few parameters.
|
| + // Too few parameters.
|
| + np.f42(b:25); /// static type error
|
| } catch (NoSuchMethodException e) {
|
| caught = true;
|
| }
|
|
|