Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(60)

Unified Diff: pkg/front_end/testcases/inference/infer_use_of_void_local.dart

Issue 2953903002: Move test infer_use_of_void to inference_new (Closed)
Patch Set: Created 3 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: pkg/front_end/testcases/inference/infer_use_of_void_local.dart
diff --git a/pkg/front_end/testcases/inference/infer_use_of_void.dart b/pkg/front_end/testcases/inference/infer_use_of_void_local.dart
similarity index 59%
copy from pkg/front_end/testcases/inference/infer_use_of_void.dart
copy to pkg/front_end/testcases/inference/infer_use_of_void_local.dart
index a8b29c19db08bab9892fd63d5d40eba3868d9fb8..e6e32e83f375f32939ab30e08e1d1eb4c004abd9 100644
--- a/pkg/front_end/testcases/inference/infer_use_of_void.dart
+++ b/pkg/front_end/testcases/inference/infer_use_of_void_local.dart
@@ -5,17 +5,10 @@
/*@testedFeatures=inference*/
library test;
-class B {
- void f() {}
-}
+void f() {}
-class C extends B {
- /*@topType=void*/ f() {}
+void g() {
+ var /*@type=void*/ x = f();
}
-var /*@topType=dynamic*/ x =
- new C(). /*info:USE_OF_VOID_RESULT*/ /*@target=C::f*/ f();
-
-main() {
- x;
-}
+main() {}

Powered by Google App Engine
This is Rietveld 408576698