Index: tests/language_strong/named_parameters_aggregated_test.dart |
diff --git a/tests/language_strong/named_parameters_aggregated_test.dart b/tests/language_strong/named_parameters_aggregated_test.dart |
index 7ff998561f0a788a4e50cf109680f521fa7db6fb..149f2eb7efa5f37aa41b8b24a03db40073bb211d 100644 |
--- a/tests/language_strong/named_parameters_aggregated_test.dart |
+++ b/tests/language_strong/named_parameters_aggregated_test.dart |
@@ -5,48 +5,46 @@ |
import "package:expect/expect.dart"; |
- |
class TypeTester<T> {} |
// Expect compile-time error as no default values are allowed |
// in closure type definitions. |
typedef void Callback([String msg |
= "" // //# 01: compile-time error |
- ]); |
+ ]); |
class NamedParametersAggregatedTests { |
- |
static int F31(int a, {int b: 20, int c: 30}) { |
- return 100*(100*a + b) + c; |
+ return 100 * (100 * a + b) + c; |
} |
static int f_missing_comma(a |
[b = 42] //# 02: compile-time error |
- ) => a; |
+ ) => |
+ a; |
var _handler = null; |
// Expect compile-time error as no default values |
// are allowed in closure type. |
- void InstallCallback(void cb({String msg |
+ void InstallCallback( |
+ void cb({String msg |
: null //# 03: compile-time error |
- })) { |
+ })) { |
_handler = cb; |
} |
- |
} |
- |
main() { |
// Expect compile-time error due to missing comma in function definition. |
NamedParametersAggregatedTests.f_missing_comma(10 |
, 25 // //# 02: continued |
- ); |
+ ); |
// Expect compile-time erorr due to duplicate named argument. |
- NamedParametersAggregatedTests.F31(10, b:25 |
+ NamedParametersAggregatedTests.F31(10, b: 25 |
, b:35 // //# 04: compile-time error |
- ); |
+ ); |
// Expect compile-time error due to missing positional argument. |
Expect.throws(() => NamedParametersAggregatedTests.F31(b:25, c:35), (e) => e is NoSuchMethodError); // //# 05: static type warning |
@@ -54,5 +52,4 @@ main() { |
new TypeTester<Callback>(); |
(new NamedParametersAggregatedTests()).InstallCallback(null); |
- |
} |