Skip to content

Commit 30daf2c

Browse files
rsshnicolasstucki
andauthored
overload overloaded
Co-authored-by: Nicolas Stucki <[email protected]>
1 parent 8d9bc59 commit 30daf2c

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

compiler/src/dotty/tools/dotc/quoted/QuoteContextImpl.scala

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -412,6 +412,9 @@ class QuoteContextImpl private (ctx: Context) extends QuoteContext:
412412
val denot = qualifier.tpe.member(name.toTermName)
413413
assert(!denot.isOverloaded, s"The symbol `$name` is overloaded. The method Select.unique can only be used for non-overloaded symbols.")
414414
withDefaultPos(tpd.Select(qualifier, name.toTermName))
415+
def overloaded(qualifier: Term, name: String, targs: List[Type], args: List[Term]): Apply =
416+
withDefaultPos(tpd.applyOverloaded(qualifier, name.toTermName, args, targs, Types.WildcardType).asInstanceOf[Apply])
417+
415418
def overloaded(qualifier: Term, name: String, targs: List[Type], args: List[Term], returnType: Type): Apply =
416419
withDefaultPos(tpd.applyOverloaded(qualifier, name.toTermName, args, targs, returnType).asInstanceOf[Apply])
417420
def copy(original: Tree)(qualifier: Term, name: String): Select =

0 commit comments

Comments
 (0)