blob: 544f96610d5b5ba653adc970cf407e94373927a3 [file]
FILE: chainedFunSuspendUnitConversion.kt
public abstract fun interface SuspendRunnable : R|kotlin/Any| {
public abstract suspend fun run(): R|kotlin/Unit|
}
public final fun foo(r: R|SuspendRunnable|): R|kotlin/Unit| {
}
public final fun bar(): R|kotlin/String| {
^bar String()
}
public abstract class SubInt : R|() -> kotlin/Int| {
public constructor(): R|SubInt| {
super<R|kotlin/Any|>()
}
}
public final fun test(f: R|() -> kotlin/String|, s: R|SubInt|): R|kotlin/Unit| {
R|/foo|(SAM(FConversion(R|<local>/f|)))
R|/foo|(SAM(FConversion(R|<local>/s|)))
R|/foo|(SAM(::R|/bar|))
}