Permalink
Browse files

SI-6126 Test case for varargs of tagged primitives.

This started working after the merge fe1110f. I didn't track
down precisely which commit was responsible beyond that.
  • Loading branch information...
1 parent 5d65772 commit 25c73645dab744025935e764b79943fb561a4b65 @retronym retronym committed Jan 13, 2013
Showing with 8 additions and 0 deletions.
  1. +8 −0 test/files/run/t6126.scala
@@ -0,0 +1,8 @@
+trait LogLevelType
+object Test {
+ type LogLevel = Int with LogLevelType
+ final val ErrorLevel = 1.asInstanceOf[Int with LogLevelType]
+ def main(args: Array[String]) {
+ List(ErrorLevel, ErrorLevel)
+ }
+}

0 comments on commit 25c7364

Please sign in to comment.