| Index: tests/language/src/NamedParametersTypeTest.dart
|
| diff --git a/tests/language/src/NamedParametersTypeTest.dart b/tests/language/src/NamedParametersTypeTest.dart
|
| index 536395c2c80493b893e3ebe96e35f75322b4fb81..8d0e48c22bc102125420d6650cf83be44e7afcfa 100644
|
| --- a/tests/language/src/NamedParametersTypeTest.dart
|
| +++ b/tests/language/src/NamedParametersTypeTest.dart
|
| @@ -21,14 +21,14 @@ class NamedParametersTypeTest {
|
| acceptFunNumOptBool(funNum); // No error.
|
| acceptFunNumOptBool(funNumOptBool); // No error.
|
| try {
|
| - acceptFunNumOptBool(funNumBool); // Throws an error.
|
| + acceptFunNumOptBool(funNumBool); /// static type error
|
| } catch (TypeError error) {
|
| result += 1;
|
| Expect.stringEquals("(num, [b: bool]) => void", error.dstType);
|
| Expect.stringEquals("(num, bool) => void", error.srcType);
|
| }
|
| try {
|
| - acceptFunNumOptBool(funNumOptBoolX); // Throws an error.
|
| + acceptFunNumOptBool(funNumOptBoolX); /// static type error
|
| } catch (TypeError error) {
|
| result += 10;
|
| Expect.stringEquals("(num, [b: bool]) => void", error.dstType);
|
|
|