File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
compiler/src/dotty/tools/dotc/parsing Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -3253,14 +3253,14 @@ object Parsers {
3253
3253
val firstParamMod =
3254
3254
var mods = EmptyModifiers
3255
3255
if isErased then mods = addModifier(mods)
3256
- if in.name == nme.inline then mods = addModifier(mods)
3256
+ // if in.name == nme.inline then mods = addModifier(mods)
3257
3257
mods
3258
3258
if givenOnly && ! impliedMods.is(Given ) then
3259
3259
syntaxError(em " `using` expected " )
3260
3260
val isParams =
3261
3261
! impliedMods.is(Given )
3262
3262
|| startParamTokens.contains(in.token)
3263
- || isIdent && in.lookahead.isColon
3263
+ || isIdent && ( in.name == nme.inline || in. lookahead.isColon)
3264
3264
(if isParams then commaSeparated(() => param())
3265
3265
else contextTypes(ofClass, nparams, impliedMods)) match {
3266
3266
case Nil => Nil
You can’t perform that action at this time.
0 commit comments