diff options
author | James Iry <jamesiry@gmail.com> | 2013-02-07 21:40:25 -0800 |
---|---|---|
committer | James Iry <jamesiry@gmail.com> | 2013-02-07 21:40:25 -0800 |
commit | 40056d1cf028a967ae24f392a8d825ac7827b913 (patch) | |
tree | e7dc9d126678e5a37221a60fc547dc6fd84df6c0 /test/files/run/idempotency-partial-functions.scala | |
parent | 4c08eb604f6a23077fd1c65d0bb073ea94389961 (diff) | |
parent | dfbaaa179fddd3d37abf66a08080f646b8557b6f (diff) | |
download | scala-40056d1cf028a967ae24f392a8d825ac7827b913.tar.gz scala-40056d1cf028a967ae24f392a8d825ac7827b913.tar.bz2 scala-40056d1cf028a967ae24f392a8d825ac7827b913.zip |
Merge pull request #2090 from adriaanm/rebase-pr-2011
SI-6187 Make partial functions re-typable
Diffstat (limited to 'test/files/run/idempotency-partial-functions.scala')
-rw-r--r-- | test/files/run/idempotency-partial-functions.scala | 25 |
1 files changed, 0 insertions, 25 deletions
diff --git a/test/files/run/idempotency-partial-functions.scala b/test/files/run/idempotency-partial-functions.scala deleted file mode 100644 index dd5f1167f1..0000000000 --- a/test/files/run/idempotency-partial-functions.scala +++ /dev/null @@ -1,25 +0,0 @@ -import scala.reflect.runtime.universe._ -import scala.reflect.runtime.{currentMirror => cm} -import scala.tools.reflect.{ToolBox, ToolBoxError} -import scala.tools.reflect.Eval - -object Test extends App { - val partials = reify { - List((false,true)) collect { case (x,true) => x } - } - try { - println(partials.eval) - } catch { - case _: ToolBoxError => println("error!!") - } - try { - val tb = cm.mkToolBox() - val tpartials = tb.typeCheck(partials.tree) - println(tpartials) - val rtpartials = tb.resetAllAttrs(tpartials) - println(tb.eval(rtpartials)) - } catch { - // this is the current behaviour, rather than the desired behavior; see SI-6187 - case _: ToolBoxError => println("error!") - } -}
\ No newline at end of file |