[NI] Turn off KnownTypeParameterSubstitutor for NI

The main consequence of it is that TYPE_MISMATCH range for control
structures became wider.

Also, for extra safety, don't change behaviour of OI.
This commit is contained in:
Dmitry Savvinov
2017-12-07 13:18:24 +03:00
parent 4ed6928e6b
commit 33f9576dd1
15 changed files with 53 additions and 49 deletions
@@ -2,9 +2,9 @@
package f
fun test(a: Boolean, b: Boolean): Int {
return if(a) {
return <!NI;TYPE_MISMATCH, NI;TYPE_MISMATCH!>if(a) {
1
} else <!NI;TYPE_MISMATCH!>{
} else {
<!OI;TYPE_MISMATCH!><!INVALID_IF_AS_EXPRESSION!>if<!> (b) {
3
}<!>