Index: pkg/front_end/testcases/inference/future_then_conditional.dart |
diff --git a/pkg/front_end/testcases/inference/future_then_conditional.dart b/pkg/front_end/testcases/inference/future_then_conditional.dart |
index a93601f960302583baecc45fc9eeae6505306012..c7b3bf27a20cca3c5fc20c9d26a7eebf9aa953e9 100644 |
--- a/pkg/front_end/testcases/inference/future_then_conditional.dart |
+++ b/pkg/front_end/testcases/inference/future_then_conditional.dart |
@@ -14,7 +14,7 @@ class MyFuture<T> implements Future<T> { |
MyFuture<S> then<S>(FutureOr<S> f(T x), {Function onError}) => null; |
} |
-void main() { |
+void test() { |
MyFuture<bool> f; |
Future<int> t1 = f. /*@typeArgs=int*/ /*@target=MyFuture::then*/ then( |
/*@returnType=Future<int>*/ (/*@type=bool*/ x) async => |
@@ -32,3 +32,5 @@ void main() { |
return /*info:DOWN_CAST_COMPOSITE*/ x ? 2 : new Future<int>.value(3); |
}); |
} |
+ |
+main() {} |