File tree Expand file tree Collapse file tree 3 files changed +4
-2
lines changed
compiler/src/dotty/tools/dotc/printing Expand file tree Collapse file tree 3 files changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -156,6 +156,8 @@ class RefinedPrinter(_ctx: Context) extends PlainPrinter(_ctx) {
156156 if (defn.isTupleClass(cls)) return toTextTuple(args)
157157 if (isInfixType(tp)) return toTextInfixType(tycon, args)
158158 return (toTextLocal(tycon) ~ " [" ~ Text (args map argText, " , " ) ~ " ]" ).close
159+ case EtaExpansion (tycon) =>
160+ return toText(tycon)
159161 case tp : TypeRef =>
160162 val hideType = ! ctx.settings.debugAlias.value && (tp.symbol.isAliasPreferred)
161163 if (hideType && ! ctx.phase.erasedTypes && ! tp.symbol.isCompleting) {
Original file line number Diff line number Diff line change @@ -4,5 +4,5 @@ scala> val s: Map {type Map$K =String;type Map$V = Int} = null
44-- [E055] Syntax Error: <console>:5:7 ------------------------------------------
555 |val s: Map {type Map$K =String;type Map$V = Int} = null
66 | ^^^
7- | missing type parameter for [K, V] => Map[K, V]
7+ | missing type parameter for Map
88scala> :quit
Original file line number Diff line number Diff line change 11scala> case class Foo[M[_]](x: M[Int])
22defined class Foo
33scala> Foo(Option(1))
4- val res0: Foo[[+A] => Option[A] ] = Foo(Some(1))
4+ val res0: Foo[Option] = Foo(Some(1))
55scala> :quit
You can’t perform that action at this time.
0 commit comments