Skip to content

Commit e1ddced

Browse files
authored
Update compiler/src/dotty/tools/dotc/core/Types.scala
1 parent 3a8e669 commit e1ddced

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1686,7 +1686,7 @@ object Types {
16861686
}
16871687

16881688
/** Determine the expected function type from the prototype.
1689-
* If no function type is found, Any is returned. If multiple
1689+
* If no function type is found, NoType is returned. If multiple
16901690
* function types are found in an intersection, their intersection
16911691
* is returned. This works since `&` invokes `TypeComparer.distributeAnd`, which
16921692
* ensures that `(A1 => B1) & (A2 => B2)` simplifies to `(A1 | A2) => (B1 & B2)`,

0 commit comments

Comments
 (0)