diff options
Diffstat (limited to 'test/files/continuations-neg')
-rw-r--r-- | test/files/continuations-neg/t3628.check | 4 | ||||
-rw-r--r-- | test/files/continuations-neg/t3628.scala | 11 |
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 + } + } + } +} |