blob: 2daf93f3088df2683757e237ccfdcb02e2b0c8ba (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
|
import java.lang.Thread.State
import java.lang.Thread.State._
object Test {
def f(state: State) = state match {
case NEW | WAITING => true
case RUNNABLE => false
// and I forget the rest
}
}
|