1 2 3 4 5 6 7 8 9
class Test { import MyEnum._ def f(e: MyEnum) = e match { case ONE => println("one") case TWO => println("two") // missing case --> exhaustivity warning! } }