FIR: Correctly handle nullable/flexible captured types
This commit is contained in:
@@ -0,0 +1,10 @@
|
||||
// FILE: main.kt
|
||||
|
||||
fun foo(p: Processor<in CharSequence>, s: String?) {
|
||||
p.process(s)
|
||||
}
|
||||
|
||||
// FILE: Processor.java
|
||||
public interface Processor<T> {
|
||||
boolean process(T t);
|
||||
}
|
||||
@@ -0,0 +1,4 @@
|
||||
FILE: main.kt
|
||||
public final fun foo(p: R|Processor<in kotlin/CharSequence>|, s: R|kotlin/String?|): R|kotlin/Unit| {
|
||||
R|<local>/p|.R|SubstitutionOverride</Processor.process: R|kotlin/Boolean|>|(R|<local>/s|)
|
||||
}
|
||||
Reference in New Issue
Block a user