We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
FunctionOf.unapply
1 parent 64830a4 commit f93adb5Copy full SHA for f93adb5
compiler/src/dotty/tools/dotc/core/Definitions.scala
@@ -1110,10 +1110,10 @@ class Definitions {
1110
ft.dealias match
1111
case ErasedFunctionOf(mt) =>
1112
Some(mt.paramInfos, mt.resType, mt.isContextualMethod)
1113
- case _ =>
1114
- val tsym = ft.dealias.typeSymbol
+ case dft =>
+ val tsym = dft.typeSymbol
1115
if isFunctionSymbol(tsym) && ft.isRef(tsym) then
1116
- val targs = ft.dealias.argInfos
+ val targs = dft.argInfos
1117
if (targs.isEmpty) None
1118
else Some(targs.init, targs.last, tsym.name.isContextFunction)
1119
else None
0 commit comments