File tree Expand file tree Collapse file tree 2 files changed +6
-1
lines changed
compiler/src/dotty/tools/dotc/typer Expand file tree Collapse file tree 2 files changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -162,7 +162,7 @@ class Synthesizer(typer: Typer)(using @constructorOnly c: Context):
162162 New (defn.ValueOfClass .typeRef.appliedTo(t.tpe), t :: Nil ).withSpan(span)
163163 formal.argInfos match
164164 case arg :: Nil =>
165- fullyDefinedType(arg.dealias , " ValueOf argument" , span).normalized match
165+ fullyDefinedType(arg, " ValueOf argument" , span).normalized.dealias match
166166 case ConstantType (c : Constant ) =>
167167 success(Literal (c))
168168 case tp : TypeRef if tp.isRef(defn.UnitClass ) =>
Original file line number Diff line number Diff line change 1+ case class Wrapper [A <: Singleton ](a : A )(using ValueOf [A ])
2+
3+ def test [A <: Singleton ](blabla : Wrapper [A ]): Unit = ()
4+
5+ val _ = test(Wrapper (" yo" ))
You can’t perform that action at this time.
0 commit comments