File tree 1 file changed +2
-2
lines changed
compiler/src/dotty/tools/dotc/transform
1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -82,7 +82,7 @@ class InterceptedMethods extends MiniPhase {
82
82
val Any_!= = defn.Any_!=
83
83
val rewritten : Tree = tree.fun.symbol match {
84
84
case Any_!= =>
85
- qual.select(defn.Any_== ).appliedToArgs(tree.args).select(defn.Boolean_! )
85
+ qual.select(defn.Any_== ).appliedToArgs(tree.args).select(defn.Boolean_! ).withSpan(tree.span)
86
86
/*
87
87
/* else if (isPrimitiveValueClass(qual.tpe.typeSymbol)) {
88
88
// todo: this is needed to support value classes
@@ -100,7 +100,7 @@ class InterceptedMethods extends MiniPhase {
100
100
// we get a primitive form of _getClass trying to target a boxed value
101
101
// so we need replace that method name with Object_getClass to get correct behavior.
102
102
// See SI-5568.
103
- qual.selectWithSig(defn.Any_getClass ).appliedToNone
103
+ qual.selectWithSig(defn.Any_getClass ).appliedToNone.withSpan(tree.span)
104
104
case _ =>
105
105
tree
106
106
}
You can’t perform that action at this time.
0 commit comments