File tree Expand file tree Collapse file tree 3 files changed +9
-3
lines changed
compiler/src/dotty/tools/dotc/printing Expand file tree Collapse file tree 3 files changed +9
-3
lines changed Original file line number Diff line number Diff line change @@ -193,7 +193,7 @@ class PlainPrinter(_ctx: Context) extends Printer {
193
193
" <overloaded " ~ toTextRef(tp) ~ " >"
194
194
case tp : TypeRef =>
195
195
if (printWithoutPrefix.contains(tp.symbol))
196
- selectionString(tp.dealias )
196
+ Str ( selectionString(tp) )
197
197
else
198
198
toTextPrefixOf(tp) ~ selectionString(tp)
199
199
case tp : TermParamRef =>
Original file line number Diff line number Diff line change 61
61
-- [E172] Type Error: tests/neg/i4986c.scala:62:19 ---------------------------------------------------------------------
62
62
62 | i.m[Option[Long]] // error
63
63
| ^
64
- | String; List; [A, _] =>> List[Option[?]]; Int; Option[Long];
64
+ | String; List; [A, _] =>> List²[Option[?]]; Int; Option[Long];
65
+ |
66
+ | where: List is a type in package object scala which is an alias of List²
67
+ | List² is a class in package scala.collection.immutable
Original file line number Diff line number Diff line change 6
6
8 |def b = f(a) // error
7
7
| ^
8
8
| Found: G[[A <: Int] =>> List[A]]
9
- | Required: G[List]
9
+ | Required: G[List²]
10
+ |
11
+ | where: List is a class in package scala.collection.immutable
12
+ | List² is a type in package object scala which is an alias of List
10
13
|
11
14
| longer explanation available when compiling with `-explain`
You can’t perform that action at this time.
0 commit comments