File tree Expand file tree Collapse file tree 2 files changed +9
-1
lines changed
compiler/src/dotty/tools/dotc/parsing Expand file tree Collapse file tree 2 files changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -213,7 +213,9 @@ object Parsers {
213
213
} && ! in.isSoftModifierInModifierPosition
214
214
215
215
def isExprIntro : Boolean =
216
- in.canStartExprTokens.contains(in.token) && ! in.isSoftModifierInModifierPosition
216
+ in.canStartExprTokens.contains(in.token)
217
+ && ! in.isSoftModifierInModifierPosition
218
+ && ! (isIdent(nme.extension) && followingIsExtension())
217
219
218
220
def isDefIntro (allowedMods : BitSet , excludedSoftModifiers : Set [TermName ] = Set .empty): Boolean =
219
221
in.token == AT
Original file line number Diff line number Diff line change
1
+ object Main :
2
+ def main (args : Array [String ]): Unit =
3
+ extension on (a : AnyRef ):
4
+ def putout (): Unit = println(a)
5
+
6
+ " blub" .putout()
You can’t perform that action at this time.
0 commit comments