summaryrefslogtreecommitdiff
path: root/test/files/continuations-neg
diff options
context:
space:
mode:
authorPaul Phillips <paulp@improving.org>2011-07-29 22:02:24 +0000
committerPaul Phillips <paulp@improving.org>2011-07-29 22:02:24 +0000
commitb5865cd83f2e8871c746acd1e7a907058b417989 (patch)
tree7c78325ae22f23105ba29d7a8230fae7cbb867c0 /test/files/continuations-neg
parent9bdc1a0b6deb5bf8a056af0253b25fcf5d92c7f7 (diff)
downloadscala-b5865cd83f2e8871c746acd1e7a907058b417989.tar.gz
scala-b5865cd83f2e8871c746acd1e7a907058b417989.tar.bz2
scala-b5865cd83f2e8871c746acd1e7a907058b417989.zip
Moved test out of pending, closes SI-3628, no r...
Moved test out of pending, closes SI-3628, no review.
Diffstat (limited to 'test/files/continuations-neg')
-rw-r--r--test/files/continuations-neg/t3628.check4
-rw-r--r--test/files/continuations-neg/t3628.scala11
2 files changed, 15 insertions, 0 deletions
diff --git a/test/files/continuations-neg/t3628.check b/test/files/continuations-neg/t3628.check
new file mode 100644
index 0000000000..6e390558ef
--- /dev/null
+++ b/test/files/continuations-neg/t3628.check
@@ -0,0 +1,4 @@
+t3628.scala:4: error: not found: type Actor
+ val impl: Actor = actor {
+ ^
+one error found
diff --git a/test/files/continuations-neg/t3628.scala b/test/files/continuations-neg/t3628.scala
new file mode 100644
index 0000000000..c56e7752c4
--- /dev/null
+++ b/test/files/continuations-neg/t3628.scala
@@ -0,0 +1,11 @@
+import scala.actors.Actor._
+
+object Test {
+ val impl: Actor = actor {
+ loop {
+ react {
+ case 1 => impl ! 2
+ }
+ }
+ }
+}