Introduce synthetic scope for constructors of fun interfaces

#KT-37434 Fixed
This commit is contained in:
Mikhail Zarechenskiy
2020-04-09 01:36:15 +03:00
parent e9e21caeaf
commit 9607739d30
10 changed files with 119 additions and 6 deletions
@@ -10,4 +10,5 @@ fun foo(k: KRunnable) = k.invoke()
fun test() {
foo { "OK" }
foo(KRunnable { "OK "})
}
+1
View File
@@ -10,4 +10,5 @@ fun foo(k: KRunnable) = k.invoke()
fun test() {
foo { "OK" }
foo(KRunnable { "OK " })
}
+1
View File
@@ -10,4 +10,5 @@ fun foo(k: KRunnable) = k.invoke()
fun test() {
foo { "OK" }
foo(KRunnable { "OK " })
}