Skip to content

Commit fa6c579

Browse files
Merge pull request #3792 from dotty-staging/fix-#1380
Fix #1380: Add missing part of the message
2 parents 193e907 + c6bfc6a commit fa6c579

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

compiler/src/dotty/tools/dotc/reporting/diagnostic/messages.scala

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,8 @@ object messages {
193193
else
194194
""
195195

196-
i"missing parameter type for parameter ${param.name}$ofFun, expected = $pt"
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)"""
197198
}
198199

199200
val explanation =
Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
scala> val xs = scala.collection.mutable.ListBuffer[Int]
22
1 | val xs = scala.collection.mutable.ListBuffer[Int]
33
| ^
4-
| missing parameter type for parameter elems, expected = ?
4+
|missing parameter type for parameter elems, expected = ?
5+
|The argument types of an anonymous function must be fully known. (SLS 8.5)
56
scala> val xs = scala.collection.mutable.ListBuffer[Int]()
67
val xs: scala.collection.mutable.ListBuffer[Int] = ListBuffer()

0 commit comments

Comments
 (0)