Files
kotlin-fork/compiler/testData/codegen/bytecodeListing/sam/lambdaSpecializedSamInterface.kt
T

16 lines
241 B
Kotlin
Vendored

// WITH_SIGNATURES
// FILE: t.kt
fun specializedSam(f: () -> String) = J.g({ f() })
// FILE: J.java
public class J {
static <T> T g(Sam<T> s) {
return s.get();
}
}
// FILE: Sam.java
public interface Sam<T> {
T get();
}