We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6b9084d commit a178222Copy full SHA for a178222
compiler/src/dotty/tools/dotc/parsing/Parsers.scala
@@ -4389,6 +4389,8 @@ object Parsers {
4389
stats += closure(in.offset, Location.InBlock, modifiers(BitSet(IMPLICIT)))
4390
else if isIdent(nme.extension) && followingIsExtension() then
4391
stats += extension()
4392
+ else if ctx.mode.is(Mode.Interactive) && isDefIntro(localModifierTokens) then
4393
+ stats +++= localDef(in.offset)
4394
else if isDefIntro(localModifierTokens, excludedSoftModifiers = Set(nme.`opaque`)) then
4395
stats +++= localDef(in.offset)
4396
else
0 commit comments