aboutsummaryrefslogtreecommitdiff
path: root/src/dotty/tools/dotc/transform
diff options
context:
space:
mode:
authorNicolas Stucki <nicolas.stucki@gmail.com>2016-08-26 14:27:23 +0200
committerNicolas Stucki <nicolas.stucki@gmail.com>2016-08-26 14:43:30 +0200
commit94bc07d5f981ef51f5da3a3a444e361ebbaa93a3 (patch)
tree0fa56f4f62f5961278282799b5fa01c2de74d1d6 /src/dotty/tools/dotc/transform
parent94ac9e7f2cda9bd371d3017373961a11cad76f47 (diff)
downloaddotty-94bc07d5f981ef51f5da3a3a444e361ebbaa93a3.tar.gz
dotty-94bc07d5f981ef51f5da3a3a444e361ebbaa93a3.tar.bz2
dotty-94bc07d5f981ef51f5da3a3a444e361ebbaa93a3.zip
Fix a couple of warnings.
Diffstat (limited to 'src/dotty/tools/dotc/transform')
-rw-r--r--src/dotty/tools/dotc/transform/InterceptedMethods.scala1
-rw-r--r--src/dotty/tools/dotc/transform/TailRec.scala8
2 files changed, 5 insertions, 4 deletions
diff --git a/src/dotty/tools/dotc/transform/InterceptedMethods.scala b/src/dotty/tools/dotc/transform/InterceptedMethods.scala
index ffb4ae756..7c60e8d72 100644
--- a/src/dotty/tools/dotc/transform/InterceptedMethods.scala
+++ b/src/dotty/tools/dotc/transform/InterceptedMethods.scala
@@ -22,7 +22,6 @@ import dotty.tools.dotc.ast.{untpd, tpd}
import dotty.tools.dotc.core.Constants.Constant
import dotty.tools.dotc.core.Types.MethodType
import dotty.tools.dotc.core.Names.Name
-import dotty.runtime.LazyVals
import scala.collection.mutable.ListBuffer
import dotty.tools.dotc.core.Denotations.SingleDenotation
import dotty.tools.dotc.core.SymDenotations.SymDenotation
diff --git a/src/dotty/tools/dotc/transform/TailRec.scala b/src/dotty/tools/dotc/transform/TailRec.scala
index efa0633d8..b345dda61 100644
--- a/src/dotty/tools/dotc/transform/TailRec.scala
+++ b/src/dotty/tools/dotc/transform/TailRec.scala
@@ -338,14 +338,16 @@ class TailRec extends MiniPhaseTransform with DenotTransformer with FullParamete
assert(false, "We should never have gotten inside a pattern")
tree
+ case t @ DefDef(_, _, _, _, _) =>
+ t // todo: could improve to handle DefDef's with a label flag calls to which are in tail position
+
case ValDef(_, _, _) | EmptyTree | Super(_, _) | This(_) |
- Literal(_) | TypeTree(_) | DefDef(_, _, _, _, _) | TypeDef(_, _) =>
+ Literal(_) | TypeTree(_) | TypeDef(_, _) =>
tree
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)
}