Stdlib minor: Make kotlin.support.State enum

This commit is contained in:
Pavel V. Talanov
2014-07-28 21:24:52 +04:00
parent 7f173fe764
commit e4de6f5e31
@@ -5,12 +5,11 @@ import java.util.NoSuchElementException
// TODO should not need this - its here for the JS stuff // TODO should not need this - its here for the JS stuff
import java.lang.UnsupportedOperationException import java.lang.UnsupportedOperationException
// not using an enum for now as JS generation doesn't support it private enum class State {
private object State { Ready
val Ready = 0 NotReady
val NotReady = 1 Done
val Done = 2 Failed
val Failed = 3
} }
/** /**