From a694dd57cc8e0dadd3a1b7ec30a18dc4739c16f0 Mon Sep 17 00:00:00 2001 From: Iulian Dragos Date: Mon, 19 Mar 2007 17:46:30 +0000 Subject: Catch tail calls made from tail boolean or. --- src/compiler/scala/tools/nsc/transform/TailCalls.scala | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/compiler') diff --git a/src/compiler/scala/tools/nsc/transform/TailCalls.scala b/src/compiler/scala/tools/nsc/transform/TailCalls.scala index 1fc2f43e3e..02735d0609 100644 --- a/src/compiler/scala/tools/nsc/transform/TailCalls.scala +++ b/src/compiler/scala/tools/nsc/transform/TailCalls.scala @@ -236,7 +236,9 @@ abstract class TailCalls extends Transform case TypeApply(fun, args) => super.transform(tree) -// throw new RuntimeException("Lonely TypeApply found -- we can only handle them inside Apply(TypeApply()): " + tree + " at: " + unit); + + case Apply(fun, args) if fun.symbol == definitions.Boolean_or => + copy.Apply(tree, fun, transformTrees(args)); case Apply(fun, args) => if (ctx.currentMethod.isFinal && -- cgit v1.2.3