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 3a8e669 commit e1ddcedCopy full SHA for e1ddced
compiler/src/dotty/tools/dotc/core/Types.scala
@@ -1686,7 +1686,7 @@ object Types {
1686
}
1687
1688
/** Determine the expected function type from the prototype.
1689
- * If no function type is found, Any is returned. If multiple
+ * If no function type is found, NoType is returned. If multiple
1690
* function types are found in an intersection, their intersection
1691
* is returned. This works since `&` invokes `TypeComparer.distributeAnd`, which
1692
* ensures that `(A1 => B1) & (A2 => B2)` simplifies to `(A1 | A2) => (B1 & B2)`,
0 commit comments