| OLD | NEW |
| 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 2 // for details. All rights reserved. Use of this source code is governed by a | 2 // for details. All rights reserved. Use of this source code is governed by a |
| 3 // BSD-style license that can be found in the LICENSE file. | 3 // BSD-style license that can be found in the LICENSE file. |
| 4 // Dart test program for testing bad named parameters. | 4 // Dart test program for testing bad named parameters. |
| 5 | 5 |
| 6 | 6 |
| 7 class BadNamedParameters2Test { | 7 class BadNamedParameters2Test { |
| 8 | 8 |
| 9 int foo(int a) { | 9 int foo(int a) { |
| 10 // Although no optional named parameters are declared, we must check that | 10 // Although no optional named parameters are declared, we must check that |
| (...skipping 13 matching lines...) Expand all Loading... |
| 24 } catch (NoSuchMethodException e) { | 24 } catch (NoSuchMethodException e) { |
| 25 caught = true; | 25 caught = true; |
| 26 } | 26 } |
| 27 Expect.equals(true, caught); | 27 Expect.equals(true, caught); |
| 28 } | 28 } |
| 29 } | 29 } |
| 30 | 30 |
| 31 main() { | 31 main() { |
| 32 BadNamedParameters2Test.testMain(); | 32 BadNamedParameters2Test.testMain(); |
| 33 } | 33 } |
| OLD | NEW |