Files
kotlin-fork/compiler/testData/ir/irText/expressions/ifElseIf.txt
T
Dmitry Petrov 02f01efaac Update testData
2018-02-28 10:35:13 +03:00

21 lines
996 B
Plaintext
Vendored

FILE fqName:<root> fileName:/ifElseIf.kt
FUN name:test visibility:public modality:FINAL <> (i:kotlin.Int) returnType:Int flags:
VALUE_PARAMETER name:i index:0 type:kotlin.Int flags:
BLOCK_BODY
RETURN type=kotlin.Nothing from='test(Int): Int'
WHEN type=kotlin.Int origin=WHEN
BRANCH
if: CALL 'greater(Int, Int): Boolean' type=kotlin.Boolean origin=GT
arg0: GET_VAR 'value-parameter i: Int' type=kotlin.Int origin=null
arg1: CONST Int type=kotlin.Int value=0
then: CONST Int type=kotlin.Int value=1
BRANCH
if: CALL 'less(Int, Int): Boolean' type=kotlin.Boolean origin=LT
arg0: GET_VAR 'value-parameter i: Int' type=kotlin.Int origin=null
arg1: CONST Int type=kotlin.Int value=0
then: CONST Int type=kotlin.Int value=-1
BRANCH
if: CONST Boolean type=kotlin.Boolean value=true
then: CONST Int type=kotlin.Int value=0