summaryrefslogtreecommitdiff
path: root/test/files
diff options
context:
space:
mode:
authorGeoffrey Washburn <geoffrey.washburn@epfl.ch>2008-02-04 16:08:19 +0000
committerGeoffrey Washburn <geoffrey.washburn@epfl.ch>2008-02-04 16:08:19 +0000
commit1f945242defb20f15edcffb996cab0e7064052dc (patch)
tree88987e56699bbd8e583990500e7d5e09668a3532 /test/files
parentfa2d95497d3492578d3b3973ce7ee2b43c7daea2 (diff)
downloadscala-1f945242defb20f15edcffb996cab0e7064052dc.tar.gz
scala-1f945242defb20f15edcffb996cab0e7064052dc.tar.bz2
scala-1f945242defb20f15edcffb996cab0e7064052dc.zip
Added tests for #323.
Diffstat (limited to 'test/files')
-rw-r--r--test/files/run/interpreter.check7
-rw-r--r--test/files/run/interpreter.scala3
2 files changed, 9 insertions, 1 deletions
diff --git a/test/files/run/interpreter.check b/test/files/run/interpreter.check
index b07f69ea2e..4b31bc1445 100644
--- a/test/files/run/interpreter.check
+++ b/test/files/run/interpreter.check
@@ -171,4 +171,9 @@ scala>
scala> | | You typed two blank lines. Starting a new command.
scala>
-scala>
+scala> match: Int
+
+scala> x: Int = 1
+
+scala>
+scala> \ No newline at end of file
diff --git a/test/files/run/interpreter.scala b/test/files/run/interpreter.scala
index 9b270f380a..5ad9953857 100644
--- a/test/files/run/interpreter.scala
+++ b/test/files/run/interpreter.scala
@@ -107,6 +107,9 @@ there
(1 + // give up early by typing two blank lines
+// defining and using quoted names should work (ticket #323)
+def `match` = 1
+val x = `match`
</code>.text