summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorJason Zaugg <jzaugg@gmail.com>2013-01-13 13:47:13 +0100
committerJason Zaugg <jzaugg@gmail.com>2013-01-13 13:47:13 +0100
commit25c73645dab744025935e764b79943fb561a4b65 (patch)
tree3170a7607468be442e88fb2f14b6924da8c4e31a /test
parent5d65772762072aa950a488c666673dc248b01d6d (diff)
downloadscala-25c73645dab744025935e764b79943fb561a4b65.tar.gz
scala-25c73645dab744025935e764b79943fb561a4b65.tar.bz2
scala-25c73645dab744025935e764b79943fb561a4b65.zip
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.
Diffstat (limited to 'test')
-rw-r--r--test/files/run/t6126.scala8
1 files changed, 8 insertions, 0 deletions
diff --git a/test/files/run/t6126.scala b/test/files/run/t6126.scala
new file mode 100644
index 0000000000..d552d8e695
--- /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)
+ }
+}