diff options
Diffstat (limited to 'test/files/run/patunreachable.scala')
-rw-r--r-- | test/files/run/patunreachable.scala | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/test/files/run/patunreachable.scala b/test/files/run/patunreachable.scala new file mode 100644 index 0000000000..4cc6181e81 --- /dev/null +++ b/test/files/run/patunreachable.scala @@ -0,0 +1,9 @@ +// contribution bug #460 + +object Test extends Application { + val x = Some(3) match { + case Some(1 | 2) => 1 + case Some(3) => 2 + } + println(x) +} |