diff options
Diffstat (limited to 'test/files/neg/t2442/t2442.scala')
-rw-r--r-- | test/files/neg/t2442/t2442.scala | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/test/files/neg/t2442/t2442.scala b/test/files/neg/t2442/t2442.scala index 4ca0889400..b0a0f3cd41 100644 --- a/test/files/neg/t2442/t2442.scala +++ b/test/files/neg/t2442/t2442.scala @@ -6,4 +6,10 @@ class Test { case TWO => println("two") // missing case --> exhaustivity warning! } + + import MySecondEnum._ + def g(e: MySecondEnum) = e match { + case RED => println("red") + // missing case --> exhaustivity warning! + } }
\ No newline at end of file |