We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 56ca9ab + 27de32d commit 80d8910Copy full SHA for 80d8910
compiler/src/dotty/tools/dotc/printing/PlainPrinter.scala
@@ -183,7 +183,7 @@ class PlainPrinter(_ctx: Context) extends Printer {
183
"<noprefix>"
184
case tp: MethodType =>
185
changePrec(GlobalPrec) {
186
- (if (tp.isContextual) " with " else "") ~
+ (if (tp.isContextual) " given " else "") ~
187
("(" + (if (tp.isErasedMethod) "erased " else "")
188
+ (if (tp.isImplicitMethod && !tp.isContextual) "implicit " else "")
189
) ~ paramsText(tp) ~
compiler/test-resources/repl/defs
@@ -10,3 +10,5 @@ scala> def id(x: 4): 4 = x
10
def id(x: Int(4)): Int(4)
11
scala> id(4)
12
val res0: Int = 4
13
+scala> def f given Int = 1
14
+def f given (x$1: Int): Int
0 commit comments