Skip to content

Commit 82dbb9e

Browse files
authored
Merge pull request #8265 from dotty-staging/update-refined-printer-to-new-given-syntax
Update RefinedPrinter to new given syntax
2 parents fa2d063 + 2181f57 commit 82dbb9e

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

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

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -772,8 +772,9 @@ class RefinedPrinter(_ctx: Context) extends PlainPrinter(_ctx) {
772772
}
773773

774774
private def paramsText[T>: Untyped](params: List[ValDef[T]]) =
775-
keywordText(" with ").provided(params.nonEmpty && params.head.mods.is(Given))
776-
~ "(" ~ toText(params, ", ") ~ ")"
775+
"(" ~ keywordText("using ").provided(params.nonEmpty && params.head.mods.is(Given))
776+
~ keywordText("erased ").provided(params.nonEmpty && params.head.mods.is(Erased))
777+
~ toText(params, ", ") ~ ")"
777778

778779
protected def defDefToText[T >: Untyped](tree: DefDef[T]): Text = {
779780
import untpd.{modsDeco => _}

0 commit comments

Comments
 (0)