Stdlib minor: Make kotlin.support.State enum
This commit is contained in:
@@ -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
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in New Issue
Block a user