Allow singletons and functions with the same name

This commit is contained in:
Alexander Udalov
2013-12-02 16:12:03 +04:00
parent dcedbed7e1
commit 080bd42f88
3 changed files with 30 additions and 0 deletions
@@ -0,0 +1,21 @@
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()
}