Files
kotlin-fork/compiler/testData/ir/irText/expressions/booleanConstsInAndAndOrOr.txt
T
2017-05-04 09:33:03 +03:00

27 lines
1.3 KiB
Plaintext
Vendored

FILE /booleanConstsInAndAndOrOr.kt
FUN public fun test1(b: kotlin.Boolean): kotlin.Unit
VALUE_PARAMETER value-parameter b: kotlin.Boolean
BLOCK_BODY
TYPE_OP type=kotlin.Unit origin=IMPLICIT_COERCION_TO_UNIT typeOperand=kotlin.Unit
WHEN type=kotlin.Boolean origin=ANDAND
BRANCH
if: GET_VAR 'value-parameter b: Boolean' type=kotlin.Boolean origin=null
then: RETURN type=kotlin.Nothing from='test1(Boolean): Unit'
GET_OBJECT 'Unit' type=kotlin.Unit
BRANCH
if: CONST Boolean type=kotlin.Boolean value='true'
then: CONST Boolean type=kotlin.Boolean value='false'
FUN public fun test2(b: kotlin.Boolean): kotlin.Unit
VALUE_PARAMETER value-parameter b: kotlin.Boolean
BLOCK_BODY
TYPE_OP type=kotlin.Unit origin=IMPLICIT_COERCION_TO_UNIT typeOperand=kotlin.Unit
WHEN type=kotlin.Boolean origin=OROR
BRANCH
if: GET_VAR 'value-parameter b: Boolean' type=kotlin.Boolean origin=null
then: CONST Boolean type=kotlin.Boolean value='true'
BRANCH
if: CONST Boolean type=kotlin.Boolean value='true'
then: RETURN type=kotlin.Nothing from='test2(Boolean): Unit'
GET_OBJECT 'Unit' type=kotlin.Unit