Skip to content

Commit f007994

Browse files
committed
Update doc
1 parent 1948a8d commit f007994

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

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

+3-3
Original file line numberDiff line numberDiff line change
@@ -1403,9 +1403,9 @@ object Types extends TypeUtils {
14031403
case tp =>
14041404
tp
14051405

1406-
/** Widen all top-level singletons reachable by dealiasing
1407-
* and going to the operands of & and |.
1408-
* Overridden and cached in OrType.
1406+
/** Widen all top-level singletons reachable by dealiasing and going to the
1407+
* operands of intersections and soft unions (only when `skipSoftUnions` is
1408+
* `false`). Overridden and cached in [[OrType]].
14091409
*/
14101410
def widenSingletons(skipSoftUnions: Boolean = false)(using Context): Type = dealias match {
14111411
case tp: SingletonType =>

0 commit comments

Comments
 (0)