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() {} |