blob: b1250b0a858fab40b838280178e935a350a0ee2e [file] [log] [blame]
// Copyright (c) 2018, 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.
import 'package:expect/expect.dart';
/*class: A:checks=[],instance*/
class A<T> {
@NoInline()
m() {
return /*checks=[$signature],instance*/ (T t) {};
}
@NoInline()
f() {
return /*checks=[],functionType,instance*/ (int t) {};
}
}
@NoInline()
test(o) => o is void Function(int);
main() {
test(new A<int>().m());
test(new A<int>().f());
}