File tree Expand file tree Collapse file tree 3 files changed +13
-3
lines changed
compiler/src/dotty/tools/dotc/printing Expand file tree Collapse file tree 3 files changed +13
-3
lines changed Original file line number Diff line number Diff line change @@ -192,9 +192,6 @@ class PlainPrinter(_ctx: Context) extends Printer {
192
192
case tp : TermRef if tp.denot.isOverloaded =>
193
193
" <overloaded " ~ toTextRef(tp) ~ " >"
194
194
case tp : TypeRef =>
195
- if (printWithoutPrefix.contains(tp.symbol))
196
- toText(tp.name)
197
- else
198
195
toTextPrefixOf(tp) ~ selectionString(tp)
199
196
case tp : TermParamRef =>
200
197
ParamRefNameString (tp) ~ lambdaHash(tp.binder) ~ " .type"
Original file line number Diff line number Diff line change
1
+ -- [E007] Type Mismatch Error: tests/neg/i18678b.scala:3:16 --------------------
2
+ 3 |def s: String = "" // error
3
+ | ^^
4
+ | Found: ("" : String)
5
+ | Required: String²
6
+ |
7
+ | where: String is a class in package java.lang
8
+ | String² is a class in the empty package
9
+ |
10
+ | longer explanation available when compiling with `-explain`
Original file line number Diff line number Diff line change
1
+ class String
2
+
3
+ def s : String = " " // error
You can’t perform that action at this time.
0 commit comments