[PSI2IR] Check how contextual functional type works with IR
This commit is contained in:
committed by
TeamCityServer
parent
a59b9e78ac
commit
08570a37b8
Vendored
+14
@@ -0,0 +1,14 @@
|
||||
fun withContext(f: @ContextFunctionTypeParams(count = 1) Function1<String, String>): String {
|
||||
return f.invoke(p1 = "OK")
|
||||
}
|
||||
|
||||
fun callWithContext(f: Function1<String, String>): String {
|
||||
return withContext(f = f)
|
||||
}
|
||||
|
||||
fun box(): String {
|
||||
return callWithContext(f = local fun <anonymous>(s: String): String {
|
||||
return s
|
||||
}
|
||||
)
|
||||
}
|
||||
Reference in New Issue
Block a user