From 25c73645dab744025935e764b79943fb561a4b65 Mon Sep 17 00:00:00 2001 From: Jason Zaugg Date: Sun, 13 Jan 2013 13:47:13 +0100 Subject: [PATCH] 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. --- test/files/run/t6126.scala | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 test/files/run/t6126.scala diff --git a/test/files/run/t6126.scala b/test/files/run/t6126.scala new file mode 100644 index 000000000000..d552d8e695bb --- /dev/null +++ b/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) + } +}