Add IR text tests fixating the state of KT-65341
This commit is contained in:
committed by
Space Team
parent
64902e615e
commit
3ba8256b8d
+29
@@ -0,0 +1,29 @@
|
||||
class Controller<K : Any?> {
|
||||
constructor() /* primary */ {
|
||||
super/*Any*/()
|
||||
/* <init>() */
|
||||
|
||||
}
|
||||
|
||||
fun yield(k: K) {
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
fun <T : Any?> generate(lambda: @ExtensionFunctionType Function1<Controller<T>, Unit>) {
|
||||
}
|
||||
|
||||
fun <E : Any?> id(e: E): E {
|
||||
return e
|
||||
}
|
||||
|
||||
fun bar(s: String) {
|
||||
}
|
||||
|
||||
fun foo() {
|
||||
generate<String>(lambda = local fun Controller<String>.<anonymous>() {
|
||||
bar(s = id<Controller<String>>(e = $this$generate))
|
||||
$this$generate.yield(k = "")
|
||||
}
|
||||
)
|
||||
}
|
||||
Reference in New Issue
Block a user