Skip to content

Commit

Permalink
Fix parsing conditional givens with using
Browse files Browse the repository at this point in the history
  • Loading branch information
odersky committed Jan 31, 2020
1 parent bfb88cc commit ad66401
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion compiler/src/dotty/tools/dotc/parsing/Parsers.scala
Expand Up @@ -916,7 +916,9 @@ object Parsers {
def followingIsParamOrGivenType() =
val lookahead = in.LookaheadScanner()
lookahead.nextToken()
if startParamOrGivenTypeTokens.contains(lookahead.token) then true
if startParamOrGivenTypeTokens.contains(lookahead.token)
|| lookahead.isIdent(nme.using)
then true
else if lookahead.token == IDENTIFIER then
if lookahead.name == nme.inline then
lookahead.nextToken()
Expand Down

0 comments on commit ad66401

Please sign in to comment.