mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-09 08:31:29 +00:00
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
10 lines
174 B
Java
10 lines
174 B
Java
class JavaClass {
|
|
interface Computable<T> {
|
|
T compute();
|
|
}
|
|
|
|
static <T> T compute(Computable<T> computable) {
|
|
return computable.compute();
|
|
}
|
|
}
|