Skip to content

Commit 514c1c5

Browse files
committed
Dealias before looking for the symbol
1 parent 04e3f91 commit 514c1c5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

compiler/src/dotty/tools/dotc/core/Definitions.scala

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1101,8 +1101,8 @@ class Definitions {
11011101
RefinedType(fnType, nme.apply, mt)
11021102
else fnType
11031103
def unapply(ft: Type)(using Context): Option[(List[Type], Type, Boolean, List[Boolean])] = {
1104-
val tsym = ft.typeSymbol
1105-
if isFunctionClass(tsym) && ft.isRef(tsym) then
1104+
val tsym = ft.dealias.typeSymbol
1105+
if isFunctionSymbol(tsym) && ft.isRef(tsym) then
11061106
val targs = ft.dealias.argInfos
11071107
val isErased = erasedFunctionParameters(ft)
11081108
if (targs.isEmpty) None

0 commit comments

Comments
 (0)