Skip to content

Commit 2181f57

Browse files
committed
Update RefinedPrinter to new given syntax
1 parent 25cdd9e commit 2181f57

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)