File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
src/compiler/scala/tools/nsc/typechecker Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -1190,7 +1190,7 @@ trait ContextErrors {
1190
1190
1191
1191
def IllegalDependentMethTpeError (sym : Symbol )(context : Context ) = {
1192
1192
val errorAddendum =
1193
- " : parameter appears in the type of another parameter in the same section or an earlier one "
1193
+ " : parameter may only be referenced in a subsequent parameter section "
1194
1194
issueSymbolTypeError(sym, " illegal dependent method type" + errorAddendum)(context)
1195
1195
}
1196
1196
Original file line number Diff line number Diff line change 1
- depmet_1.scala:2: error: illegal dependent method type: parameter appears in the type of another parameter in the same section or an earlier one
1
+ depmet_1.scala:2: error: illegal dependent method type: parameter may only be referenced in a subsequent parameter section
2
2
def precise0(y: x.type)(x: String): Unit = {}
3
3
^
4
- depmet_1.scala:3: error: illegal dependent method type: parameter appears in the type of another parameter in the same section or an earlier one
4
+ depmet_1.scala:3: error: illegal dependent method type: parameter may only be referenced in a subsequent parameter section
5
5
def precise1(x: String, y: x.type): Unit = {}
6
6
^
7
7
depmet_1.scala:4: error: not found: value y
You can’t perform that action at this time.
0 commit comments