@@ -1266,7 +1266,7 @@ object Parsers {
1266
1266
* | SimpleExpr1 ArgumentExprs `=' Expr
1267
1267
* | Expr2
1268
1268
* | [‘inline’] Expr2 `match' `{' CaseClauses `}'
1269
- * | `implied ' `match' `{' ImplicitCaseClauses `}'
1269
+ * | `delegate ' `match' `{' ImplicitCaseClauses `}'
1270
1270
* Bindings ::= `(' [Binding {`,' Binding}] `)'
1271
1271
* Binding ::= (id | `_') [`:' Type]
1272
1272
* Expr2 ::= PostfixExpr [Ascription]
@@ -1470,7 +1470,7 @@ object Parsers {
1470
1470
*/
1471
1471
def impliedMatch (start : Int , imods : Modifiers ) = {
1472
1472
def markFirstIllegal (mods : List [Mod ]) = mods match {
1473
- case mod :: _ => syntaxError(em " illegal modifier for implied match " , mod.span)
1473
+ case mod :: _ => syntaxError(em " illegal modifier for delegate match " , mod.span)
1474
1474
case _ =>
1475
1475
}
1476
1476
imods.mods match {
@@ -1485,7 +1485,7 @@ object Parsers {
1485
1485
case pat => isVarPattern(pat)
1486
1486
}
1487
1487
if (! isImplicitPattern(pat))
1488
- syntaxError(em " not a legal pattern for an implied match " , pat.span)
1488
+ syntaxError(em " not a legal pattern for a delegate match " , pat.span)
1489
1489
}
1490
1490
result
1491
1491
}
@@ -2351,8 +2351,8 @@ object Parsers {
2351
2351
2352
2352
type ImportConstr = (Boolean , Tree , List [Tree ]) => Tree
2353
2353
2354
- /** Import ::= import [implied ] [ImportExpr {`,' ImportExpr}
2355
- * Export ::= export [implied ] [ImportExpr {`,' ImportExpr}
2354
+ /** Import ::= import [delegate ] [ImportExpr {`,' ImportExpr}
2355
+ * Export ::= export [delegate ] [ImportExpr {`,' ImportExpr}
2356
2356
*/
2357
2357
def importClause (leading : Token , mkTree : ImportConstr ): List [Tree ] = {
2358
2358
val offset = accept(leading)
@@ -2383,7 +2383,7 @@ object Parsers {
2383
2383
wildcardIdent() :: Nil
2384
2384
case FOR =>
2385
2385
if (! importImplied)
2386
- syntaxError(em " `for` qualifier only allowed in `import implied ` " )
2386
+ syntaxError(em " `for` qualifier only allowed in `import delegate ` " )
2387
2387
atSpan(in.skipToken()) {
2388
2388
var t = infixType()
2389
2389
while (in.token == COMMA ) {
0 commit comments