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
import java.lang.UnsupportedOperationException
// not using an enum for now as JS generation doesn't support it
private object State {
val Ready = 0
val NotReady = 1
val Done = 2
val Failed = 3
private enum class State {
Ready
NotReady
Done
Failed
}
/**