Files
kotlin/compiler/testData/diagnostics/tests/classObjects/ClassObjectVisibility.kt
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

30 lines
400 B
Kotlin

package foo
fun test() {
A.d
A.Default.<!INVISIBLE_MEMBER!>f<!>
B.<!INVISIBLE_MEMBER!>D<!>
<!INVISIBLE_MEMBER!>CCC<!>
CCC.<!INVISIBLE_MEMBER!>classObjectVar<!>
}
class A() {
public default object {
val d = 3
private object f {
}
}
}
class B {
class D {
private default object
}
}
class CCC() {
private default object {
val classObjectVar = 3
}
}