Properly calculate safe call receivers

This commit is contained in:
Michael Bogdanov
2016-10-01 14:55:44 +03:00
committed by Dmitry Petrov
parent bc6f691405
commit e543972dad
6 changed files with 40 additions and 17 deletions
@@ -42,7 +42,7 @@ FILE /variableAsFunctionCall.kt
BRANCH
if: CONST Boolean type=kotlin.Boolean value='true'
then: CALL 'k() on String: () -> String' type=() -> kotlin.String origin=null
$this: GET_VAR 'tmp0_safe_receiver: String?' type=kotlin.String? origin=null
$receiver: GET_VAR 'tmp0_safe_receiver: String?' type=kotlin.String? origin=null
WHEN type=kotlin.String? origin=SAFE_CALL
BRANCH
if: CALL 'EQEQ(Any?, Any?): Boolean' type=kotlin.Boolean origin=EQEQ