Skip to content

Commit 05593cb

Browse files
committed
Check that PolyFunction are not param-dependent
These are not supposed to be supported
1 parent a7f1966 commit 05593cb

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1184,6 +1184,7 @@ class Definitions {
11841184
def isValidMethodType(info: Type) = info match
11851185
case info: MethodType =>
11861186
!info.resType.isInstanceOf[MethodOrPoly] // Has only one parameter list
1187+
&& !info.isParamDependent
11871188
case _ => false
11881189
info match
11891190
case info: PolyType => isValidMethodType(info.resType)

0 commit comments

Comments
 (0)