K2: Add new tests for PCLA implementation
Many of them have been found & minimized at FP tests/user projects ^KT-59791 Fixed
This commit is contained in:
committed by
Space Team
parent
90feeab076
commit
7e4d9d9f64
Vendored
+20
@@ -0,0 +1,20 @@
|
||||
// FILE: GenericJava.java
|
||||
public class GenericJava<F> {
|
||||
public java.util.List<F> getFoo() {}
|
||||
}
|
||||
|
||||
// FILE: main.kt
|
||||
class Controller<T> {
|
||||
fun yield(t: T) {}
|
||||
|
||||
fun gg(): GenericJava<T> = TODO()
|
||||
}
|
||||
|
||||
fun <S> generate(g: suspend Controller<S>.() -> Unit) {}
|
||||
|
||||
fun main() {
|
||||
generate {
|
||||
yield("")
|
||||
<!DEBUG_INFO_EXPRESSION_TYPE("(kotlin.collections.MutableList<(TypeVariable(S)..TypeVariable(S)?)>..kotlin.collections.List<(TypeVariable(S)..TypeVariable(S)?)>?)")!>gg().foo<!>
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user