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.
1 parent 0f7ce34 commit 092083eCopy full SHA for 092083e
compiler/src/dotty/tools/dotc/printing/PlainPrinter.scala
@@ -197,7 +197,11 @@ class PlainPrinter(_ctx: Context) extends Printer {
197
}
198
case tp: ExprType =>
199
changePrec(GlobalPrec) { "=> " ~ toText(tp.resultType) }
200
- case tp: TypeLambda =>
+ case tp: HKTypeLambda =>
201
+ changePrec(GlobalPrec) {
202
+ "[" ~ paramsText(tp) ~ "]" ~ lambdaHash(tp) ~ Str(" =>> ") ~ toTextGlobal(tp.resultType)
203
+ }
204
+ case tp: PolyType =>
205
changePrec(GlobalPrec) {
206
"[" ~ paramsText(tp) ~ "]" ~ lambdaHash(tp) ~
207
(Str(" => ") provided !tp.resultType.isInstanceOf[MethodType]) ~
0 commit comments