FIR: Fix SAM conversion for raw types with non-trivial TP upper bounds
This commit is contained in:
@@ -0,0 +1,17 @@
|
||||
// FILE: main.kt
|
||||
|
||||
fun foo() {
|
||||
RawType.bar {
|
||||
it.length > 0
|
||||
}
|
||||
}
|
||||
|
||||
// FILE: Processor.java
|
||||
public interface Processor<T extends CharSequence> {
|
||||
boolean process(T t);
|
||||
}
|
||||
|
||||
// FILE: RawType.java
|
||||
public class RawType {
|
||||
public static void bar(Processor x) {}
|
||||
}
|
||||
@@ -0,0 +1,7 @@
|
||||
FILE: main.kt
|
||||
public final fun foo(): R|kotlin/Unit| {
|
||||
Q|RawType|.R|/RawType.bar|(<L> = bar@fun <anonymous>(it: R|ft<kotlin/CharSequence, kotlin/CharSequence?>!|): R|kotlin/Boolean| {
|
||||
^ CMP(>, R|<local>/it|.R|kotlin/CharSequence.length|.R|kotlin/Int.compareTo|(Int(0)))
|
||||
}
|
||||
)
|
||||
}
|
||||
Reference in New Issue
Block a user