Skip to content

Commit 43941f4

Browse files
committed
Bugfix: missing return
1 parent 9c94940 commit 43941f4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

compiler/src/dotty/tools/dotc/printing/RefinedPrinter.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -201,7 +201,7 @@ class RefinedPrinter(_ctx: Context) extends PlainPrinter(_ctx) {
201201
// (they don't need to because we keep the original type tree with
202202
// the original annotation anyway. Therefore, there will always be
203203
// one version of the annotation tree that has the correct positions).
204-
withoutPos(super.toText(tp))
204+
return withoutPos(super.toText(tp))
205205
case tp: SelectionProto =>
206206
return "?{ " ~ toText(tp.name) ~
207207
(Str(" ") provided !tp.name.toSimpleName.last.isLetterOrDigit) ~

0 commit comments

Comments
 (0)