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 {
189189 val msg = {
190190 val ofFun =
191191 if (MethodType .syntheticParamNames(args.length + 1 ) contains param.name)
192- i " of expanded function $tree"
192+ i " of expanded function: \n $tree"
193193 else
194194 " "
195195
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"""
198201 }
199202
200203 val explanation =
Original file line number Diff line number Diff line change 11scala> val xs = scala.collection.mutable.ListBuffer[Int]
221 | val xs = scala.collection.mutable.ListBuffer[Int]
33 | ^
4- |missing parameter type for parameter elems, expected = ?
4+ |missing parameter type
5+ |
56 |The argument types of an anonymous function must be fully known. (SLS 8.5)
7+ |Expected type: ?
8+ |Missing type for parameter elems
69scala> val xs = scala.collection.mutable.ListBuffer[Int]()
710val xs: scala.collection.mutable.ListBuffer[Int] = ListBuffer()
You can’t perform that action at this time.
0 commit comments