We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
pos
span
1 parent 2d7765d commit c946591Copy full SHA for c946591
compiler/src/dotty/tools/dotc/typer/Implicits.scala
@@ -686,11 +686,11 @@ trait Implicits { self: Typer =>
686
* An EmptyTree is returned if materialization fails.
687
*/
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)
+ def success(t: Tree) = New(defn.ValueOfClass.typeRef.appliedTo(t.tpe), t :: Nil).withSpan(span)
690
691
formal.argTypes match {
692
case arg :: Nil =>
693
- fullyDefinedType(arg.dealias, "ValueOf argument", pos) match {
+ fullyDefinedType(arg.dealias, "ValueOf argument", span) match {
694
case ConstantType(c: Constant) =>
695
success(Literal(c))
696
case TypeRef(_, sym) if sym == defn.UnitClass =>
0 commit comments