Skip to content

Commit 0a5e873

Browse files
committed
Change argument name
1 parent d26669d commit 0a5e873

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

compiler/src/dotty/tools/dotc/transform/PostTyper.scala

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -59,10 +59,10 @@ class PostTyper extends MacroTransform with SymTransformer { thisTransformer =>
5959

6060
import tpd._
6161

62-
def transformSym(sym: SymDenotation)(implicit ctx: Context): SymDenotation = {
63-
if (sym.is(BindDefinedType) && ctx.gadt.bounds.contains(sym.symbol)) {
64-
sym.copySymDenotation(info = ctx.gadt.bounds.apply(sym.symbol) & sym.info)
65-
} else sym
62+
def transformSym(ref: SymDenotation)(implicit ctx: Context): SymDenotation = {
63+
if (ref.is(BindDefinedType) && ctx.gadt.bounds.contains(ref.symbol)) {
64+
ref.copySymDenotation(info = ctx.gadt.bounds.apply(ref.symbol) & ref.info)
65+
} else ref
6666
}
6767

6868
/** the following two members override abstract members in Transform */

0 commit comments

Comments
 (0)