Skip to content

Commit

Permalink
Space: Fix intersectUnrelatedAtomicTypes tracing
Browse files Browse the repository at this point in the history
  • Loading branch information
dwijnand authored and Kordyjan committed Aug 9, 2023
1 parent 555df53 commit c569a4f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion compiler/src/dotty/tools/dotc/transform/patmat/Space.scala
Original file line number Diff line number Diff line change
Expand Up @@ -330,7 +330,7 @@ object SpaceEngine {
* The types should be atomic (non-decomposable) and unrelated (neither
* should be a subtype of the other).
*/
def intersectUnrelatedAtomicTypes(tp1: Type, tp2: Type)(sp: Space)(using Context): Space = trace(i"atomic intersection: ${AndType(tp1, tp2)}", debug) {
def intersectUnrelatedAtomicTypes(tp1: Type, tp2: Type)(sp: Space)(using Context): Space = trace(i"atomic intersection: ${AndType(tp1, tp2)}", debug, show) {
// Precondition: !isSubType(tp1, tp2) && !isSubType(tp2, tp1).
if !ctx.mode.is(Mode.SafeNulls) && (tp1.isNullType || tp2.isNullType) then
// Since projections of types don't include null, intersection with null is empty.
Expand Down

0 comments on commit c569a4f

Please sign in to comment.