Files
kotlin-fork/compiler/testData/diagnostics/tests/redeclarations/SingletonAndFunctionSameName.kt
T
2013-12-02 19:56:15 +04:00

22 lines
240 B
Kotlin

fun Foo() = 42
object Foo {
fun Bar() = 239
object Bar
}
<!CONFLICTING_OVERLOADS!>fun En()<!> = 239
enum class <!CONFLICTING_OVERLOADS!>En<!> {
ENTRY
SUBCLASS { }
fun ENTRY() = 42
fun SUBCLASS() = ENTRY()
}