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.
1 parent edd6653 commit 9e98d6dCopy full SHA for 9e98d6d
compiler/src/dotty/tools/dotc/core/Types.scala
@@ -4518,7 +4518,9 @@ object Types {
4518
case et: ExprType => true
4519
case _ => false
4520
}
4521
- if (zeroParams(tp.cls.primaryConstructor.info)) tp
+ // `ImplicitFunctionN` does not have constructors
4522
+ val ctor = tp.cls.primaryConstructor
4523
+ if (!ctor.exists || zeroParams(ctor.info)) tp
4524
else NoType
4525
case tp: AppliedType =>
4526
zeroParamClass(tp.superType)
0 commit comments