// FIR_IDENTICAL // !LANGUAGE: +SamConversionForKotlinFunctions +SamConversionPerArgument +FunctionalInterfaceConversion // !CHECK_TYPE fun interface F { fun apply(s: S) } interface PR {} interface K { fun f_t(f1: F, f2: F) fun f_r(f1: F, f2: F) fun f_pr(f1: F>, f2: F>) } fun test( k: K, f_string: F, f_int: F, f_pr: F> ) { k.f_t(f_string) { it checkType { _() } } k.f_r(f_int) { it checkType { _() } } k.f_pr(f_pr) { it checkType { _>() } } }