Drop a hack which allowed to make Unit an object

This commit is contained in:
Alexander Udalov
2014-07-25 21:45:15 +04:00
parent 93fa7cb330
commit 133b2918e1
2 changed files with 2 additions and 30 deletions
+1 -11
View File
@@ -16,16 +16,6 @@
package kotlin
// Temporary class for backward compatibility with Java code
private open class OldUnit() {
class object {
public val VALUE: Unit = Unit
}
}
public object Unit : OldUnit() {
public val VALUE: Unit
get() = this
public object Unit {
override fun toString() = "kotlin.Unit"
}