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 2efe47f commit a48d4efCopy full SHA for a48d4ef
src/dotty/tools/dotc/printing/RefinedPrinter.scala
@@ -148,7 +148,8 @@ class RefinedPrinter(_ctx: Context) extends PlainPrinter(_ctx) {
148
case JavaArrayType(elemtp) =>
149
return toText(elemtp) ~ "[]"
150
case tp: SelectionProto =>
151
- return "?{ " ~ toText(tp.name) ~ ": " ~ toText(tp.memberProto) ~ " }"
+ return "?{ " ~ toText(tp.name) ~ (" " provided !tp.name.decode.last.isLetterOrDigit) ~
152
+ ": " ~ toText(tp.memberProto) ~ " }"
153
case tp: ViewProto =>
154
return toText(tp.argType) ~ " ?=>? " ~ toText(tp.resultType)
155
case tp @ FunProto(args, resultType, _) =>
0 commit comments