diff options
Diffstat (limited to 'test/files/run')
-rw-r--r-- | test/files/run/bug4556.check | 17 | ||||
-rw-r--r-- | test/files/run/bug4556.scala | 9 |
2 files changed, 26 insertions, 0 deletions
diff --git a/test/files/run/bug4556.check b/test/files/run/bug4556.check new file mode 100644 index 0000000000..69d0b4fda1 --- /dev/null +++ b/test/files/run/bug4556.check @@ -0,0 +1,17 @@ +Type in expressions to have them evaluated. +Type :help for more information. + +scala> + +scala> :type [List(1, 2, 3)] +<console>:2: error: illegal start of simple expression + [List(1, 2, 3)] + ^ + + +scala> :type List(1, 2, 3) +List[Int] + +scala> + +scala> diff --git a/test/files/run/bug4556.scala b/test/files/run/bug4556.scala new file mode 100644 index 0000000000..8f682ce7df --- /dev/null +++ b/test/files/run/bug4556.scala @@ -0,0 +1,9 @@ +import scala.tools.partest.ReplTest + +object Test extends ReplTest { + def code = """ + |:type [List(1, 2, 3)] + |:type List(1, 2, 3) + """.stripMargin +} + |