summaryrefslogtreecommitdiff
path: root/test/files/run
diff options
context:
space:
mode:
authorPaul Phillips <paulp@improving.org>2011-05-29 20:20:17 +0000
committerPaul Phillips <paulp@improving.org>2011-05-29 20:20:17 +0000
commit4c7d23b470b71e730024d1f7797f742dc97207fa (patch)
tree65b6ef8d67bd7b4dba4ed341df3323cad9a30215 /test/files/run
parent1125a9cfab5c5bacfd10bf1a559b97437339dbaf (diff)
downloadscala-4c7d23b470b71e730024d1f7797f742dc97207fa.tar.gz
scala-4c7d23b470b71e730024d1f7797f742dc97207fa.tar.bz2
scala-4c7d23b470b71e730024d1f7797f742dc97207fa.zip
Give some feedback on invalid :type expressions.
Diffstat (limited to 'test/files/run')
-rw-r--r--test/files/run/bug4556.check17
-rw-r--r--test/files/run/bug4556.scala9
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
+}
+