Skip to content

Commit 8d46eb0

Browse files
committed
Fix bug that HOAS argument types should be applied with widenTermRefExpr
1 parent fc75422 commit 8d46eb0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

compiler/src/scala/quoted/runtime/impl/QuoteMatcher.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -499,7 +499,7 @@ object QuoteMatcher {
499499
case Block(List(DefDef(nme.ANON_FUN, _, _, Apply(Ident(name), _))), _) => name.asTermName
500500
case arg => arg.symbol.name.asTermName
501501
}
502-
val paramTypes = argTypes.map(mapTypeHoles)
502+
val paramTypes = argTypes.map(tpe => mapTypeHoles(tpe.widenTermRefExpr))
503503
val methTpe = MethodType(names)(_ => paramTypes, _ => mapTypeHoles(patternTpe))
504504
val meth = newAnonFun(ctx.owner, methTpe)
505505
def bodyFn(lambdaArgss: List[List[Tree]]): Tree = {

0 commit comments

Comments
 (0)