| Index: tests/language/const_constructor2_test.dart
|
| diff --git a/tests/language/const_constructor2_test.dart b/tests/language/const_constructor2_test.dart
|
| index e084c2d9e94cf3ba3ec9fc4cdcdd9d177f104296..a558fbfea7f0b860d210c77e5d8bf67ecd6ad77b 100644
|
| --- a/tests/language/const_constructor2_test.dart
|
| +++ b/tests/language/const_constructor2_test.dart
|
| @@ -62,17 +62,17 @@ main() {
|
| const C c10 = const C<int>.subtyped(a); /// 11: ok
|
| const C c10m = const C<int>.redirecting(a); /// 12: ok
|
|
|
| - const C c11 = const C<double>(a); /// 13: static type warning, compile-time error
|
| - const C c12 = const C<double>.optional(a); /// 14: static type warning, compile-time error
|
| - const C c13 = const C<double>.named(a: a); /// 15: static type warning, compile-time error
|
| - const C c14 = const C<double>.untyped(a); /// 16: static type warning, compile-time error
|
| - const C c15 = const C<double>.subtyped(a); /// 17: static type warning, compile-time error
|
| + const C c11 = const C<double>(a); /// 13: static type warning, checked mode compile-time error
|
| + const C c12 = const C<double>.optional(a); /// 14: static type warning, checked mode compile-time error
|
| + const C c13 = const C<double>.named(a: a); /// 15: static type warning, checked mode compile-time error
|
| + const C c14 = const C<double>.untyped(a); /// 16: static type warning, checked mode compile-time error
|
| + const C c15 = const C<double>.subtyped(a); /// 17: static type warning, checked mode compile-time error
|
| const C c15m = const C<double>.redirecting(a); /// 18: static type warning
|
|
|
| const E e1 = const E.redirecting1(0); /// 19: ok
|
| - const E e2 = const E.redirecting1(''); /// 20: static type warning, compile-time error
|
| + const E e2 = const E.redirecting1(''); /// 20: static type warning, checked mode compile-time error
|
| const E e3 = const E.redirecting2(0); /// 21: ok
|
| - const E e4 = const E.redirecting2(''); /// 22: static type warning, compile-time error
|
| + const E e4 = const E.redirecting2(''); /// 22: static type warning, checked mode compile-time error
|
| const E e5 = const E.redirecting3(0); /// 23: ok
|
| - const E e6 = const E.redirecting3(''); /// 24: static type warning, compile-time error
|
| + const E e6 = const E.redirecting3(''); /// 24: static type warning, checked mode compile-time error
|
| }
|
|
|