Skip to content

Commit c946591

Browse files
committed
Update missing pos to span
1 parent 2d7765d commit c946591

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -686,11 +686,11 @@ trait Implicits { self: Typer =>
686686
* An EmptyTree is returned if materialization fails.
687687
*/
688688
def synthesizedValueOf(formal: Type)(implicit ctx: Context): Tree = {
689-
def success(t: Tree) = New(defn.ValueOfClass.typeRef.appliedTo(t.tpe), t :: Nil).withPos(pos)
689+
def success(t: Tree) = New(defn.ValueOfClass.typeRef.appliedTo(t.tpe), t :: Nil).withSpan(span)
690690

691691
formal.argTypes match {
692692
case arg :: Nil =>
693-
fullyDefinedType(arg.dealias, "ValueOf argument", pos) match {
693+
fullyDefinedType(arg.dealias, "ValueOf argument", span) match {
694694
case ConstantType(c: Constant) =>
695695
success(Literal(c))
696696
case TypeRef(_, sym) if sym == defn.UnitClass =>

0 commit comments

Comments
 (0)