[FIR] Fix propagating expected type for binary operator calls

This commit is contained in:
Dmitriy Novozhilov
2019-08-14 17:48:32 +03:00
parent ba7a137e74
commit e374242adf
6 changed files with 48 additions and 25 deletions
@@ -8,4 +8,4 @@ FILE fqName:<root> fileName:/localVarInDoWhile.kt
condition: CALL 'public final fun not (): kotlin.Boolean declared in kotlin.Boolean' type=kotlin.Boolean origin=EXCLEQ
$this: CALL 'public final fun EQEQ (arg0: kotlin.Any?, arg1: kotlin.Any?): kotlin.Boolean declared in kotlin.internal.ir' type=kotlin.Boolean origin=EXCLEQ
arg0: GET_VAR 'val x: kotlin.Int [val] declared in <root>.foo' type=kotlin.Int origin=null
arg1: CONST Int type=kotlin.Unit value=42
arg1: CONST Int type=kotlin.Int value=42