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
+21
@@ -0,0 +1,21 @@
|
||||
// FIR_IDENTICAL
|
||||
class Controller<T>
|
||||
|
||||
fun <S> generate1(g: suspend (Controller<S>) -> Unit): S = TODO()
|
||||
fun <S> generate2(g: suspend Controller<S>.() -> Unit): S = TODO()
|
||||
|
||||
fun foo(c: Controller<String>) {}
|
||||
|
||||
fun foo() {
|
||||
val t1 = generate1 {
|
||||
foo(c = it)
|
||||
}
|
||||
|
||||
<!DEBUG_INFO_EXPRESSION_TYPE("kotlin.String")!>t1<!>
|
||||
|
||||
val t2 = generate2 {
|
||||
foo(c = this)
|
||||
}
|
||||
|
||||
<!DEBUG_INFO_EXPRESSION_TYPE("kotlin.String")!>t2<!>
|
||||
}
|
||||
Reference in New Issue
Block a user