Make all nested inlined closure classes public

#KT-6987 Fixed
This commit is contained in:
Denis Zharkov
2016-01-13 13:00:09 +03:00
parent 328169cd2e
commit b8c79e689b
6 changed files with 46 additions and 2 deletions
@@ -0,0 +1,10 @@
import test.*
fun box(): String {
val x1 = foo1()()
if (x1 != "OK") return "fail 1: $x1"
foo2()().run()
return test.sideEffects
}
@@ -0,0 +1,17 @@
package test
inline fun foo1() = run {
{
"OK"
}
}
var sideEffects = "fail"
inline fun foo2() = run {
{
Runnable {
sideEffects = "OK"
}
}
}