File tree 1 file changed +2
-1
lines changed
compiler/src/dotty/tools/dotc/typer
1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -1104,13 +1104,14 @@ class Typer(@constructorOnly nestingLevel: Int = 0) extends Namer
1104
1104
// transform the `Ident` into a `Select` to ensure that the prefix
1105
1105
// is retained with a `TypedSplice` (see `case Select` bellow).
1106
1106
// See tests/pos/i18713.scala for an example.
1107
- fn.tpe match
1107
+ ( fn.tpe match
1108
1108
case TermRef (qual : TermRef , _) =>
1109
1109
toSetter(ref(qual).select(fn.symbol).withSpan(fn.span))
1110
1110
case TermRef (qual : ThisType , _) =>
1111
1111
toSetter(This (qual.cls).select(fn.symbol).withSpan(fn.span))
1112
1112
case TermRef (NoPrefix , _) =>
1113
1113
untpd.cpy.Ident (fn)(name.setterName)
1114
+ ): @ annotation.nowarn // false-positive match exhastivity warning
1114
1115
case fn @ Select (qual, name : TermName ) =>
1115
1116
untpd.cpy.Select (fn)(untpd.TypedSplice (qual), name.setterName)
1116
1117
case fn @ TypeApply (fn1, targs) =>
You can’t perform that action at this time.
0 commit comments