Test for obsolete KT-6453
#KT-6453 Obsolete
This commit is contained in:
committed by
Max Kammerer
parent
378233e1f5
commit
1d84103cce
@@ -0,0 +1,7 @@
|
||||
import test.*
|
||||
|
||||
fun box(): String {
|
||||
var r = "fail"
|
||||
A().foo { r = it }
|
||||
return r
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
package test
|
||||
|
||||
class A() {
|
||||
private val x = "OK"
|
||||
internal inline fun foo(p: (String) -> Unit) {
|
||||
p(x)
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user