| Index: tests/language/named_parameters_type_test.dart
|
| diff --git a/tests/language/named_parameters_type_test.dart b/tests/language/named_parameters_type_test.dart
|
| index a6a87b2481692e428ecf7a65f01b6cb41780303f..8d0b5d1fcfe0921134bacce5f0735380b1894208 100644
|
| --- a/tests/language/named_parameters_type_test.dart
|
| +++ b/tests/language/named_parameters_type_test.dart
|
| @@ -21,21 +21,21 @@ class NamedParametersTypeTest {
|
| acceptFunNumOptBool(funNumOptBool); // No error.
|
| try {
|
| acceptFunNumOptBool(funNum); // No static type warning.
|
| - } catch (TypeError error) {
|
| + } on TypeError catch (error) {
|
| result += 1;
|
| Expect.stringEquals("(num, [b: bool]) => void", error.dstType);
|
| Expect.stringEquals("(num) => void", error.srcType);
|
| }
|
| try {
|
| acceptFunNumOptBool(funNumBool); /// static type warning
|
| - } catch (TypeError error) {
|
| + } on TypeError catch (error) {
|
| result += 10;
|
| Expect.stringEquals("(num, [b: bool]) => void", error.dstType);
|
| Expect.stringEquals("(num, bool) => void", error.srcType);
|
| }
|
| try {
|
| acceptFunNumOptBool(funNumOptBoolX); /// static type warning
|
| - } catch (TypeError error) {
|
| + } on TypeError catch (error) {
|
| result += 100;
|
| Expect.stringEquals("(num, [b: bool]) => void", error.dstType);
|
| Expect.stringEquals("(num, [x: bool]) => void", error.srcType);
|
|
|