mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-10 15:53:46 +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
6 lines
193 B
Kotlin
6 lines
193 B
Kotlin
fun box(): String {
|
|
val supertypes = JavaClass.foo { a, b -> a.compareTo(b) }
|
|
if (supertypes != "[java.util.Comparator<java.lang.String>]") return "Fail: $supertypes"
|
|
return "OK"
|
|
}
|