We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
FunctionOf.unapply
2 parents 1dc9761 + a0c3469 commit 18df4edCopy full SHA for 18df4ed
compiler/src/dotty/tools/dotc/core/Definitions.scala
@@ -1119,10 +1119,10 @@ class Definitions {
1119
ft.dealias match
1120
case ErasedFunctionOf(mt) =>
1121
Some(mt.paramInfos, mt.resType, mt.isContextualMethod)
1122
- case _ =>
1123
- val tsym = ft.dealias.typeSymbol
+ case dft =>
+ val tsym = dft.typeSymbol
1124
if isFunctionSymbol(tsym) && ft.isRef(tsym) then
1125
- val targs = ft.dealias.argInfos
+ val targs = dft.argInfos
1126
if (targs.isEmpty) None
1127
else Some(targs.init, targs.last, tsym.name.isContextFunction)
1128
else None
0 commit comments