Skip to content

Commit 2f63059

Browse files
oderskyDarkDimius
authored andcommitted
Fixed assertion to enfornce idempotency of substitutions
1 parent 5fe0335 commit 2f63059

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/dotty/tools/dotc/ast/TreeTypeMap.scala

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -150,8 +150,8 @@ final class TreeTypeMap(
150150
// We'll cross that bridge when we need to.
151151
assert(!from.exists(substTo contains _))
152152
assert(!to.exists(substFrom contains _))
153-
assert(!from.exists(oldOwners contains _))
154-
assert(!to.exists(newOwners contains _))
153+
assert(!from.exists(newOwners contains _))
154+
assert(!to.exists(oldOwners contains _))
155155
new TreeTypeMap(
156156
typeMap,
157157
treeMap,

0 commit comments

Comments
 (0)