Skip to content

Commit 7c5dbca

Browse files
committed
Position inlined bindings correctly
1 parent f573b8e commit 7c5dbca

File tree

3 files changed

+1
-5
lines changed

3 files changed

+1
-5
lines changed

compiler/src/dotty/tools/dotc/typer/Inliner.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -694,7 +694,7 @@ class Inliner(call: tpd.Tree, rhsToInline: tpd.Tree)(implicit ctx: Context) {
694694
*/
695695
def newBinding(sym: TermSymbol, rhs: Tree): Unit = {
696696
sym.info = rhs.tpe.widenTermRefExpr
697-
bindingsBuf += ValDef(sym, constToLiteral(rhs))
697+
bindingsBuf += ValDef(sym, constToLiteral(rhs)).withPos(sym.pos)
698698
}
699699

700700
def searchImplicit(sym: TermSymbol, tpt: Tree) = {

compiler/test/dotc/pos-test-pickling.blacklist

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
i1812.scala
22
i1867.scala
33
i3067.scala
4-
inline-rewrite.scala
5-
inline-caseclass.scala
64
matchtype.scala
75
seqtype-cycle
86
t247.scala

compiler/test/dotc/run-test-pickling.blacklist

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,4 @@ t3452g
55
t7374
66
tuples1.scala
77
tuples1a.scala
8-
implicitMatch.scala
9-
typeclass-derivation1.scala
108
typeclass-derivation2.scala

0 commit comments

Comments
 (0)