Files
kotlin/compiler/testData/codegen/boxWithJava/sam/samConstructorGenericSignature.java
Alexander Udalov de8b2b3668 Fix generic signature for SAM adapters and constructors
SAM-related code in codegen was using JavaClassDescriptor directly, which has
an erased signature. Create and use a new abstraction SamType which has a full
generic signature of a type which was used in the SAM construct
2014-05-19 19:50:58 +04:00

10 lines
174 B
Java

class JavaClass {
interface Computable<T> {
T compute();
}
static <T> T compute(Computable<T> computable) {
return computable.compute();
}
}