File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
compiler/src/dotty/tools/dotc/typer Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -686,11 +686,11 @@ trait Implicits { self: Typer =>
686
686
* An EmptyTree is returned if materialization fails.
687
687
*/
688
688
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 )
690
690
691
691
formal.argTypes match {
692
692
case arg :: Nil =>
693
- fullyDefinedType(arg.dealias, " ValueOf argument" , pos ) match {
693
+ fullyDefinedType(arg.dealias, " ValueOf argument" , span ) match {
694
694
case ConstantType (c : Constant ) =>
695
695
success(Literal (c))
696
696
case TypeRef (_, sym) if sym == defn.UnitClass =>
You can’t perform that action at this time.
0 commit comments