Skip to content

Commit 9787c64

Browse files
committed
Do not dealias in FunctionOf extractor
1 parent e1ac29f commit 9787c64

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1122,7 +1122,7 @@ class Definitions {
11221122
* Extracts the method type type and apply info.
11231123
*/
11241124
def unapply(ft: Type)(using Context): Option[MethodOrPoly] = {
1125-
ft.dealias match
1125+
ft match
11261126
case PolyFunctionOf(mt) => Some(mt)
11271127
case DependentFunctionRefinementOf(mt) => Some(mt)
11281128
case FunctionNOf(argTypes, resultType, isContextual) =>

0 commit comments

Comments
 (0)