blob: 6313ca1b08d7ed508d20f463d1c87c6b080e3ac9 [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;
class C<T> {
C(T x());
}
var /*@topType=C<int>*/ v = new C<int>(/*@returnType=int*/ () {
return 1;
});
main() {
v;
}