diff options
author | Martin Odersky <odersky@gmail.com> | 2016-10-01 21:26:38 +0200 |
---|---|---|
committer | Guillaume Martres <smarter@ubuntu.com> | 2016-10-11 19:21:02 +0200 |
commit | bc791ed3390e954b7338594b771ad09c5150d591 (patch) | |
tree | ce8ff1075202319088d08fc233209021803cc7f7 /src/dotty/tools/dotc/transform/TailRec.scala | |
parent | 79045e2c0e2830818a9be1dfaa2a7f7f83f9c0de (diff) | |
download | dotty-bc791ed3390e954b7338594b771ad09c5150d591.tar.gz dotty-bc791ed3390e954b7338594b771ad09c5150d591.tar.bz2 dotty-bc791ed3390e954b7338594b771ad09c5150d591.zip |
Reformatting to avoid a long line
Diffstat (limited to 'src/dotty/tools/dotc/transform/TailRec.scala')
-rw-r--r-- | src/dotty/tools/dotc/transform/TailRec.scala | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/dotty/tools/dotc/transform/TailRec.scala b/src/dotty/tools/dotc/transform/TailRec.scala index 065bcb397..d99a48af3 100644 --- a/src/dotty/tools/dotc/transform/TailRec.scala +++ b/src/dotty/tools/dotc/transform/TailRec.scala @@ -252,7 +252,10 @@ class TailRec extends MiniPhaseTransform with DenotTransformer with FullParamete } else targs val method = if (callTargs.nonEmpty) TypeApply(Ident(label.termRef), callTargs) else Ident(label.termRef) - val thisPassed = if(this.method.owner.isClass) method appliedTo(receiver.ensureConforms(method.tpe.widen.firstParamTypes.head)) else method + val thisPassed = + if (this.method.owner.isClass) + method.appliedTo(receiver.ensureConforms(method.tpe.widen.firstParamTypes.head)) + else method val res = if (thisPassed.tpe.widen.isParameterless) thisPassed |