Skip to content

Commit 87ea7a6

Browse files
Merge pull request #7548 from dotty-staging/fix-#4657
Fix #4657: Remove special case that is not needed anymore
2 parents d605037 + 1e806d4 commit 87ea7a6

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

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

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -229,12 +229,6 @@ class RefinedPrinter(_ctx: Context) extends PlainPrinter(_ctx) {
229229
toTextParents(tp.parents) ~~ "{...}"
230230
case JavaArrayType(elemtp) =>
231231
toText(elemtp) ~ "[]"
232-
case tp: AnnotatedType if homogenizedView =>
233-
// Positions of annotations in types are not serialized
234-
// (they don't need to because we keep the original type tree with
235-
// the original annotation anyway. Therefore, there will always be
236-
// one version of the annotation tree that has the correct positions).
237-
withoutPos(super.toText(tp))
238232
case tp: SelectionProto =>
239233
"?{ " ~ toText(tp.name) ~
240234
(Str(" ") provided !tp.name.toSimpleName.last.isLetterOrDigit) ~

0 commit comments

Comments
 (0)