File tree Expand file tree Collapse file tree 2 files changed +5
-4
lines changed
compiler/src/dotty/tools/dotc/printing Expand file tree Collapse file tree 2 files changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -776,7 +776,7 @@ class RefinedPrinter(_ctx: Context) extends PlainPrinter(_ctx) {
776776 params ::: rest
777777 } else impl.body
778778
779- val bodyText = " {" ~~ selfText ~~ toTextGlobal(primaryConstrs ::: body, " \n " ) ~ " }"
779+ val bodyText = " {" ~~ selfText ~ toTextGlobal(primaryConstrs ::: body, " \n " ) ~ " }"
780780
781781 prefix ~
782782 keywordText(" extends" ).provided(! ofNew && impl.parents.nonEmpty) ~~ parentsText ~
Original file line number Diff line number Diff line change 1+ result of tests/printing/i620.scala after frontend:
12package O {
23 package O.A {
3- class D() extends Object() {
4- class C() extends Object() {
4+ class D() extends Object() {
5+ class C() extends Object() {
56 protected[D] def a: Int = 0
67 private[D] def b: Int = 0
78 private def c: Int = 0
@@ -26,4 +27,4 @@ package O {
2627 val g: Int = 0
2728 }
2829 }
29- }
30+ }
You can’t perform that action at this time.
0 commit comments