Skip duplicates removal on constraints simplification

It is already coveren on addition. Speeds up inference a bit.
This commit is contained in:
Ilya Chernikov
2020-03-09 10:15:41 +01:00
parent 6f97745de2
commit 84a0e39956
2 changed files with 3 additions and 26 deletions
@@ -22,5 +22,5 @@ val foofoo: Foo = <!OI;TYPE_INFERENCE_UPPER_BOUND_VIOLATED!>run<!> {
val bar: Bar = <!NI;TYPE_MISMATCH!><!OI;TYPE_INFERENCE_CONFLICTING_SUBSTITUTIONS!>run<!> {
val x = foo()
if (x == null) throw Exception()
<!NI;DEBUG_INFO_SMARTCAST, TYPE_MISMATCH!>x<!>
<!NI;DEBUG_INFO_SMARTCAST, NI;TYPE_MISMATCH, TYPE_MISMATCH!>x<!>
}<!>