blob: 3cb145f45462327a8b13eb0064f8d9259e134bae [file] [log] [blame]
// Copyright (c) 2017, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
/*@testedFeatures=inference*/
library test;
import 'dart:async';
Future<int> futureInt = new Future<int>.value(0);
var f = /*@returnType=Future<int>*/ () => futureInt;
var g = /*@returnType=Future<int>*/ () async => futureInt;
main() {
f;
g;
}