aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/dotty/tools/dotc/transform/TailRec.scala3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/dotty/tools/dotc/transform/TailRec.scala b/src/dotty/tools/dotc/transform/TailRec.scala
index 82b08ef5f..71eedadab 100644
--- a/src/dotty/tools/dotc/transform/TailRec.scala
+++ b/src/dotty/tools/dotc/transform/TailRec.scala
@@ -311,7 +311,8 @@ class TailRec extends MiniPhaseTransform with DenotTransformer with FullParamete
case Return(expr, from) =>
tpd.cpy.Return(tree)(noTailTransform(expr), from)
-
+ case t: DefDef =>
+ t // todo: could improve to handle DefDef's with a label flag calls to which are in tail position
case _ =>
super.transform(tree)
}