File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
compiler/src/dotty/tools/dotc/parsing Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -3149,15 +3149,15 @@ object Parsers {
3149
3149
mkTree(qual, ImportSelector (wildcardSelectorId()) :: Nil )
3150
3150
case LBRACE =>
3151
3151
mkTree(qual, inBraces(importSelectors(idOK = true )))
3152
- case IDENTIFIER | BACKQUOTED_IDENT =>
3152
+ case _ =>
3153
3153
val start = in.offset
3154
3154
val name = ident()
3155
3155
if in.token == DOT then
3156
3156
importSelection(atSpan(startOffset(qual), start) { Select (qual, name) })
3157
3157
else
3158
- mkTree(qual, ImportSelector ( atSpan(start) { Ident (name) }) :: Nil )
3159
- case _ =>
3160
- idSelector(qual) // this will produce an error, which can lead to a completion in the repl
3158
+ atSpan(startOffset(qual)) {
3159
+ mkTree(qual, ImportSelector (atSpan(start) { Ident (name) }) :: Nil )
3160
+ }
3161
3161
3162
3162
() => importSelection(simpleRef())
3163
3163
}
You can’t perform that action at this time.
0 commit comments