Files
kotlin/compiler/testData/diagnostics/tests/enum/starImportNestedClassAndEntries.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

25 lines
301 B
Kotlin

// FILE: E.kt
package foo
enum class E {
ENTRY
ANOTHER
class Nested {
default object {
fun foo() = 42
}
}
}
// FILE: main.kt
package bar
import foo.E.*
fun f1() = ENTRY
fun f2() = ANOTHER
fun f3() = Nested()
fun f4() = Nested.foo()
fun f5() = values()