We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1948a8d commit f007994Copy full SHA for f007994
compiler/src/dotty/tools/dotc/core/Types.scala
@@ -1403,9 +1403,9 @@ object Types extends TypeUtils {
1403
case tp =>
1404
tp
1405
1406
- /** Widen all top-level singletons reachable by dealiasing
1407
- * and going to the operands of & and |.
1408
- * Overridden and cached in OrType.
+ /** Widen all top-level singletons reachable by dealiasing and going to the
+ * operands of intersections and soft unions (only when `skipSoftUnions` is
+ * `false`). Overridden and cached in [[OrType]].
1409
*/
1410
def widenSingletons(skipSoftUnions: Boolean = false)(using Context): Type = dealias match {
1411
case tp: SingletonType =>
0 commit comments