File tree Expand file tree Collapse file tree 2 files changed +10
-4
lines changed
src/dotty/tools/dotc/reporting/diagnostic Expand file tree Collapse file tree 2 files changed +10
-4
lines changed Original file line number Diff line number Diff line change @@ -189,12 +189,15 @@ object messages {
189
189
val msg = {
190
190
val ofFun =
191
191
if (MethodType .syntheticParamNames(args.length + 1 ) contains param.name)
192
- i " of expanded function $tree"
192
+ i " of expanded function: \n $tree"
193
193
else
194
194
" "
195
195
196
- i """ missing parameter type for parameter ${param.name}$ofFun, expected = $pt
197
- |The argument types of an anonymous function must be fully known. (SLS 8.5) """
196
+ i """ missing parameter type
197
+ |
198
+ |The argument types of an anonymous function must be fully known. (SLS 8.5)
199
+ |Expected type: $pt
200
+ |Missing type for parameter ${param.name}$ofFun"""
198
201
}
199
202
200
203
val explanation =
Original file line number Diff line number Diff line change 1
1
scala> val xs = scala.collection.mutable.ListBuffer[Int]
2
2
1 | val xs = scala.collection.mutable.ListBuffer[Int]
3
3
| ^
4
- |missing parameter type for parameter elems, expected = ?
4
+ |missing parameter type
5
+ |
5
6
|The argument types of an anonymous function must be fully known. (SLS 8.5)
7
+ |Expected type: ?
8
+ |Missing type for parameter elems
6
9
scala> val xs = scala.collection.mutable.ListBuffer[Int]()
7
10
val xs: scala.collection.mutable.ListBuffer[Int] = ListBuffer()
You can’t perform that action at this time.
0 commit comments