diff options
author | Dmitry Petrashko <dark@d-d.me> | 2016-08-26 15:49:57 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-08-26 15:49:57 +0200 |
commit | fb19d0bd248c01f29c9e217170e20f46d84e3028 (patch) | |
tree | 0fa56f4f62f5961278282799b5fa01c2de74d1d6 /src/dotty/tools/dotc/transform | |
parent | 90c1106d23cdad9a9493d0f63515d700fc007968 (diff) | |
parent | 94bc07d5f981ef51f5da3a3a444e361ebbaa93a3 (diff) | |
download | dotty-fb19d0bd248c01f29c9e217170e20f46d84e3028.tar.gz dotty-fb19d0bd248c01f29c9e217170e20f46d84e3028.tar.bz2 dotty-fb19d0bd248c01f29c9e217170e20f46d84e3028.zip |
Merge pull request #1481 from dotty-staging/remove-warnings
Remove warnings from compliation of dotty.
Diffstat (limited to 'src/dotty/tools/dotc/transform')
-rw-r--r-- | src/dotty/tools/dotc/transform/InterceptedMethods.scala | 1 | ||||
-rw-r--r-- | src/dotty/tools/dotc/transform/TailRec.scala | 8 |
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) } |