Files
kotlin/compiler/testData/codegen/bytecodeText/constClosureOptimization.kt
Alexander Udalov 485f63e1cd Rename object$ -> OBJECT$, instance$ -> INSTANCE$
According to Java code conventions, public static final constants should be
named with all capital letters
2014-07-25 21:15:13 +04:00

23 lines
414 B
Kotlin

fun test() {
fun local(){
{
//static instance access
local()
}()
}
//static instance access
{
//static instance access
local()
}()
//static instance access
(::local)()
}
// 3 GETSTATIC _DefaultPackage\$test\$1\.INSTANCE\$
// 1 GETSTATIC _DefaultPackage\$test\$2\.INSTANCE\$
// 1 GETSTATIC _DefaultPackage\$test\$3\.INSTANCE\$