blob: 54b5f6130d44443d8eab29a1ec7a3d2f9b6db16e [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;
List<T> f<T>(T g()) => <T>[g()];
var /*@topType=List<int>*/ v = (f) /*@typeArgs=int*/ (/*@returnType=int*/ () {
return 1;
});
main() {
v;
}