diff options
author | Martin Odersky <odersky@gmail.com> | 2010-03-08 13:46:13 +0000 |
---|---|---|
committer | Martin Odersky <odersky@gmail.com> | 2010-03-08 13:46:13 +0000 |
commit | b7c17993c61d453c3069a14d66ada6fb7c3301c4 (patch) | |
tree | 08ac810ecadc86c71326f6797c6e95a9465a8209 /test/files/run | |
parent | b10b2834985eb2e7f6e152790e630c922b0c119c (diff) | |
download | scala-b7c17993c61d453c3069a14d66ada6fb7c3301c4.tar.gz scala-b7c17993c61d453c3069a14d66ada6fb7c3301c4.tar.bz2 scala-b7c17993c61d453c3069a14d66ada6fb7c3301c4.zip |
new tests
Diffstat (limited to 'test/files/run')
-rw-r--r-- | test/files/run/t3026.check | 2 | ||||
-rwxr-xr-x | test/files/run/t3026.scala | 8 |
2 files changed, 10 insertions, 0 deletions
diff --git a/test/files/run/t3026.check b/test/files/run/t3026.check new file mode 100644 index 0000000000..8c29b615fa --- /dev/null +++ b/test/files/run/t3026.check @@ -0,0 +1,2 @@ +RED +YELLOW diff --git a/test/files/run/t3026.scala b/test/files/run/t3026.scala new file mode 100755 index 0000000000..22dde9cc03 --- /dev/null +++ b/test/files/run/t3026.scala @@ -0,0 +1,8 @@ +object Test { + abstract class Colour + case object RED extends Colour + case object YELLOW extends Colour + val items = Array(RED, YELLOW) + + def main(args: Array[String]): Unit = items foreach println +} |