Commit 960858d
authored
Rollback constraints if
It turns out the following assertion does not hold in the current
definition of `isSameType`
```scala 3
val preConstraint = constraint
val isSame = isSubType(tp1, tp2) && isSubType(tp2, tp1)
isSame.ensuring(_ || constraint == preConstraint)
```
I didn't try to form a minimised snippet where this would cause a
problem. But as an example, the code in
#19955 (comment)
produces invalid constraints which lead to suspicious looking
`<notypes>`s in the subtyping trace.isSameType failed second direction (#20109)1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2304 | 2304 | | |
2305 | 2305 | | |
2306 | 2306 | | |
2307 | | - | |
| 2307 | + | |
2308 | 2308 | | |
2309 | 2309 | | |
2310 | 2310 | | |
| |||
0 commit comments