We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9dfc098 commit d5168c3Copy full SHA for d5168c3
src/dotty/tools/dotc/transform/TailRec.scala
@@ -247,7 +247,10 @@ class TailRec extends MiniPhaseTransform with DenotTransformer with FullParamete
247
} else targs
248
249
val method = if (callTargs.nonEmpty) TypeApply(Ident(label.termRef), callTargs) else Ident(label.termRef)
250
- val thisPassed = if(this.method.owner.isClass) method appliedTo(receiver.ensureConforms(method.tpe.widen.firstParamTypes.head)) else method
+ val thisPassed =
251
+ if (this.method.owner.isClass)
252
+ method.appliedTo(receiver.ensureConforms(method.tpe.widen.firstParamTypes.head))
253
+ else method
254
255
val res =
256
if (thisPassed.tpe.widen.isParameterless) thisPassed
0 commit comments