groostav
07/07/2016, 8:02 AMAny.kt
is weird. it doesn't actually compile, (an open class with open methods without implementation, it's not an abstract class). which is OK because its a surrogate for Object.java ofc, but still, I feel like source code included with the distribution should compile on the face of it.
can I propose changing it to:
public open class Any{
public open operator fun equals(other: Any?): Boolean = this === other;
public open fun hashCode(): Int = this.identityHashCode
public open fun toString(): String = this.javaClass.canonicalName + "@" + identityHashCode
}
along with the available extension property (maybe also in Any.kt or Standard.kt?)
val Any.identityHashCode: Int get() = System.identityHashCode(this);
needless to say this code will never actually be compiled, but still, to somebody reading that file it wont lead them astray.