diff options
Diffstat (limited to 'test')
-rw-r--r-- | test/files/pos/switch-small.scala | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/test/files/pos/switch-small.scala b/test/files/pos/switch-small.scala new file mode 100644 index 0000000000..9de9ca028e --- /dev/null +++ b/test/files/pos/switch-small.scala @@ -0,0 +1,8 @@ +import annotation._ + +object Test { + def f(x: Int) = (x: @switch) match { + case 1 => 1 + case _ => 2 + } +} |