@@ -917,7 +917,7 @@ object Parsers {
917917 def followingIsParamOrGivenType () =
918918 val lookahead = in.LookaheadScanner ()
919919 lookahead.nextToken()
920- if startParamOrGivenTypeTokens .contains(lookahead.token)
920+ if startParamTokens .contains(lookahead.token)
921921 || lookahead.isIdent(nme.using)
922922 then true
923923 else if lookahead.token == IDENTIFIER then
@@ -1450,8 +1450,6 @@ object Parsers {
14501450 case MATCH => matchType(t)
14511451 case FORSOME => syntaxError(ExistentialTypesNoLongerSupported ()); t
14521452 case _ =>
1453- if (imods.isOneOf(GivenOrImplicit ) && ! t.isInstanceOf [FunctionWithMods ])
1454- syntaxError(ImplicitTypesCanOnlyBeFunctionTypes (), implicitKwPos(start))
14551453 if (imods.is(Erased ) && ! t.isInstanceOf [FunctionWithMods ])
14561454 syntaxError(ErasedTypesCanOnlyBeFunctionTypes (), implicitKwPos(start))
14571455 t
@@ -2299,7 +2297,7 @@ object Parsers {
22992297 def parArgumentExprs (): (List [Tree ], Boolean ) = inParens {
23002298 if in.token == RPAREN then
23012299 (Nil , false )
2302- else if in.token == GIVEN || isIdent(nme.using) then
2300+ else if isIdent(nme.using) then
23032301 in.nextToken()
23042302 (commaSeparated(argumentExpr), true )
23052303 else
@@ -2786,7 +2784,7 @@ object Parsers {
27862784 normalize(loop(start))
27872785 }
27882786
2789- val funTypeArgMods : BitSet = BitSet (GIVEN , ERASED )
2787+ val funTypeArgMods : BitSet = BitSet (ERASED )
27902788
27912789 /** Wrap annotation or constructor in New(...).<init> */
27922790 def wrapNew (tpt : Tree ): Select = Select (New (tpt), nme.CONSTRUCTOR )
@@ -2912,7 +2910,7 @@ object Parsers {
29122910 def paramMods () =
29132911 if in.token == IMPLICIT then addParamMod(() => Mod .Implicit ())
29142912 else
2915- if in.token == GIVEN || isIdent(nme.using) then addParamMod(() => Mod .Given ())
2913+ if isIdent(nme.using) then addParamMod(() => Mod .Given ())
29162914 if in.token == ERASED then addParamMod(() => Mod .Erased ())
29172915
29182916 def param (): ValDef = {
0 commit comments