diff options
author | Jason Zaugg <jzaugg@gmail.com> | 2013-01-13 13:47:13 +0100 |
---|---|---|
committer | Jason Zaugg <jzaugg@gmail.com> | 2013-01-13 13:47:13 +0100 |
commit | 25c73645dab744025935e764b79943fb561a4b65 (patch) | |
tree | 3170a7607468be442e88fb2f14b6924da8c4e31a /test/files/run/t6126.scala | |
parent | 5d65772762072aa950a488c666673dc248b01d6d (diff) | |
download | scala-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/files/run/t6126.scala')
-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) + } +} |