summaryrefslogtreecommitdiff
path: root/test/files/run/t6955.scala
diff options
context:
space:
mode:
Diffstat (limited to 'test/files/run/t6955.scala')
-rw-r--r--test/files/run/t6955.scala4
1 files changed, 3 insertions, 1 deletions
diff --git a/test/files/run/t6955.scala b/test/files/run/t6955.scala
index 2610acdec4..980aa420cc 100644
--- a/test/files/run/t6955.scala
+++ b/test/files/run/t6955.scala
@@ -1,5 +1,6 @@
import scala.tools.partest.IcodeTest
+// this class should compile to code that uses switches (twice)
class Switches {
type Tag = Byte
@@ -10,7 +11,8 @@ class Switches {
case _ => 0
}
- def switchOkay(i: Byte): Int = i match { // notice type of i is Byte
+ // this worked before, should keep working
+ def switchOkay(i: Byte): Int = i match {
case 1 => 1
case 2 => 2
case 3 => 3