mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-09 15:53:37 +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
9 lines
221 B
Java
9 lines
221 B
Java
import java.util.Arrays;
|
|
import java.util.Comparator;
|
|
|
|
class JavaClass {
|
|
public static String foo(Comparator<String> comparator) {
|
|
return Arrays.toString(comparator.getClass().getGenericInterfaces());
|
|
}
|
|
}
|