diff options
author | Adriaan Moors <adriaan.moors@typesafe.com> | 2013-01-14 12:02:14 -0800 |
---|---|---|
committer | Adriaan Moors <adriaan.moors@typesafe.com> | 2013-01-14 12:02:14 -0800 |
commit | 28da03d9ee120211bbce734ea626f4ce0404701c (patch) | |
tree | d70ca53126010d29a1166483c163e972884ddf18 /test | |
parent | f95e6a8f636affb25f5edb737eb668a8062b4b79 (diff) | |
parent | 25c73645dab744025935e764b79943fb561a4b65 (diff) | |
download | scala-28da03d9ee120211bbce734ea626f4ce0404701c.tar.gz scala-28da03d9ee120211bbce734ea626f4ce0404701c.tar.bz2 scala-28da03d9ee120211bbce734ea626f4ce0404701c.zip |
Merge pull request #1891 from retronym/ticket/6126
SI-6126 Test case for varargs of tagged primitives.
Diffstat (limited to 'test')
-rw-r--r-- | test/files/run/t6126.scala | 8 |
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) + } +} |