blob: 29baa2f3a52780c5a46cf9a79efaf73215cf0080 [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.
// @dart = 2.7
import 'package:compiler/src/util/testing.dart';
class Class1 {
/*member: Class1.method1:*/
num method1(num n) => null;
/*member: Class1.method2:*/
num method2(int n) => null;
/*member: Class1.method3:*/
Object method3(num n) => null;
}
/*spec.class: Class2:explicit=[Class2.T*],needsArgs,test*/
class Class2<T> {
num method4(T n) => null;
}
/*class: Class3:needsArgs*/
class Class3<T> {
/*member: Class3.method5:needsSignature*/
T method5(num n) => null;
}
/*spec.class: Class4:explicit=[Class4.T*],needsArgs,test*/
class Class4<T> {
/*member: Class4.method6:*/
num method6(num n, T t) => null;
}
/*member: method7:*/
num method7(num n) => null;
/*member: method8:*/
num method8(int n) => null;
/*member: method9:*/
Object method9(num n) => null;
@pragma('dart2js:noInline')
test(o) => o is num Function(num);
main() {
makeLive(test(new Class1().method1));
makeLive(test(new Class1().method2));
makeLive(test(new Class1().method3));
makeLive(test(new Class2<num>().method4));
makeLive(test(new Class3<num>().method5));
makeLive(test(new Class4<num>().method6));
makeLive(test(method7));
makeLive(test(method8));
makeLive(test(method9));
}