We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 59b67fc commit a0db7c1Copy full SHA for a0db7c1
compiler/src/dotty/tools/dotc/parsing/Parsers.scala
@@ -4696,6 +4696,8 @@ object Parsers {
4696
stats += closure(in.offset, Location.InBlock, modifiers(BitSet(IMPLICIT)))
4697
else if isIdent(nme.extension) && followingIsExtension() then
4698
stats += extension()
4699
+ else if ctx.mode.is(Mode.Interactive) && isDefIntro(localModifierTokens) then
4700
+ stats +++= localDef(in.offset)
4701
else if isDefIntro(localModifierTokens, excludedSoftModifiers = Set(nme.`opaque`)) then
4702
stats +++= localDef(in.offset)
4703
else
0 commit comments