Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 3be4e81

Browse files
committedApr 17, 2018
Add pretty-printer for PolyProto
1 parent c28ea78 commit 3be4e81

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed
 

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -218,6 +218,8 @@ class RefinedPrinter(_ctx: Context) extends PlainPrinter(_ctx) {
218218
return "FunProto(" ~ argsText ~ "):" ~ toText(resultType)
219219
case tp: IgnoredProto =>
220220
return "?"
221+
case tp @ PolyProto(targs, resType) =>
222+
return "PolyProto(" ~ toTextGlobal(targs, ", ") ~ "): " ~ toText(resType)
221223
case _ =>
222224
}
223225
super.toText(tp)

0 commit comments

Comments
 (0)
Please sign in to comment.