Files
kotlin-fork/j2k/testData/fileOrElement/constructors/staticFieldRefInFactoryFun.kt
T
Pavel V. Talanov 59f192ef90 Replace 'class object' with 'default object' in renderers and test data
Includes changes to decompiled text
Old syntax is used in builtins and project code for now
2015-03-06 19:36:54 +03:00

15 lines
360 B
Kotlin

// ERROR: Cannot access 'staticField1': it is 'private' in 'Default'
// ERROR: Cannot access 'staticField2': it is 'private' in 'Default'
fun C(p: Int): C {
val __ = C()
System.out.println(C.staticField1 + C.staticField2)
return __
}
class C {
default object {
private val staticField1 = 0
private val staticField2 = 0
}
}