summaryrefslogtreecommitdiff
path: root/test/files/continuations-neg/function3.scala
diff options
context:
space:
mode:
authorTiark Rompf <tiark.rompf@epfl.ch>2010-03-15 15:48:28 +0000
committerTiark Rompf <tiark.rompf@epfl.ch>2010-03-15 15:48:28 +0000
commit1dbc0d0fc13dd8e28598d3e4e1970c2d69861af2 (patch)
tree30bcf879605ae5dedf84b5781ff7bdcd2c9469a6 /test/files/continuations-neg/function3.scala
parent505bbf0b346b7b0cb1b18cb965f47df382f8217a (diff)
downloadscala-1dbc0d0fc13dd8e28598d3e4e1970c2d69861af2.tar.gz
scala-1dbc0d0fc13dd8e28598d3e4e1970c2d69861af2.tar.bz2
scala-1dbc0d0fc13dd8e28598d3e4e1970c2d69861af2.zip
fixed treatment of annotated types in isNumeric...
fixed treatment of annotated types in isNumericSubType. re-enabled test case. review by odersky
Diffstat (limited to 'test/files/continuations-neg/function3.scala')
-rw-r--r--test/files/continuations-neg/function3.scala15
1 files changed, 15 insertions, 0 deletions
diff --git a/test/files/continuations-neg/function3.scala b/test/files/continuations-neg/function3.scala
new file mode 100644
index 0000000000..0c3f1667e5
--- /dev/null
+++ b/test/files/continuations-neg/function3.scala
@@ -0,0 +1,15 @@
+// $Id$
+
+import scala.util.continuations._
+
+
+object Test {
+
+ def main(args: Array[String]): Any = {
+
+ val g: () => Int = () => shift { k: (Int=>Int) => k(7) }
+
+ println(reset(g()))
+ }
+
+} \ No newline at end of file