Index: pkg/front_end/testcases/inference/unsafe_block_closure_inference_constructor_call_no_type_param.dart.direct.expect |
diff --git a/pkg/front_end/testcases/rasta/bad_constructor_redirection.dart.direct.expect b/pkg/front_end/testcases/inference/unsafe_block_closure_inference_constructor_call_no_type_param.dart.direct.expect |
similarity index 51% |
copy from pkg/front_end/testcases/rasta/bad_constructor_redirection.dart.direct.expect |
copy to pkg/front_end/testcases/inference/unsafe_block_closure_inference_constructor_call_no_type_param.dart.direct.expect |
index 76f08943dcce05bac1514d905aefea73efeece7c..3f1628ce93b88960ff992a45b342f043e4efc604 100644 |
--- a/pkg/front_end/testcases/rasta/bad_constructor_redirection.dart.direct.expect |
+++ b/pkg/front_end/testcases/inference/unsafe_block_closure_inference_constructor_call_no_type_param.dart.direct.expect |
@@ -1,15 +1,15 @@ |
-library; |
+library test; |
import self as self; |
import "dart:core" as core; |
class C extends core::Object { |
- const constructor •() → void |
- : invalid-initializer; |
- const constructor x() → void |
+ constructor •(() → dynamic x) → void |
: super core::Object::•() |
; |
} |
+static field dynamic v = new self::C::•(() → dynamic { |
+ return 1; |
+}); |
static method main() → dynamic { |
- new self::C::•(); |
- const self::C::•(); |
+ self::v; |
} |