FILE fqName: fileName:/contextualInlineCall.kt CLASS CLASS name:A modality:FINAL visibility:public superTypes:[kotlin.Any] $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.A PROPERTY name:a visibility:public modality:FINAL [val] FIELD PROPERTY_BACKING_FIELD name:a type:kotlin.Any? visibility:private [final] EXPRESSION_BODY GET_VAR 'a: kotlin.Any? declared in .A.' type=kotlin.Any? origin=INITIALIZE_PROPERTY_FROM_PARAMETER FUN DEFAULT_PROPERTY_ACCESSOR name: visibility:public modality:FINAL <> ($this:.A) returnType:kotlin.Any? correspondingProperty: PROPERTY name:a visibility:public modality:FINAL [val] $this: VALUE_PARAMETER name: type:.A BLOCK_BODY RETURN type=kotlin.Nothing from='public final fun (): kotlin.Any? declared in .A' GET_FIELD 'FIELD PROPERTY_BACKING_FIELD name:a type:kotlin.Any? visibility:private [final]' type=kotlin.Any? origin=null receiver: GET_VAR ': .A declared in .A.' type=.A origin=null CONSTRUCTOR visibility:public <> (a:kotlin.Any?) returnType:.A [primary] VALUE_PARAMETER name:a index:0 type:kotlin.Any? BLOCK_BODY DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:A modality:FINAL visibility:public superTypes:[kotlin.Any]' FUN FAKE_OVERRIDE name:equals visibility:public modality:OPEN <> ($this:kotlin.Any, other:kotlin.Any?) returnType:kotlin.Boolean [fake_override,operator] overridden: public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in kotlin.Any $this: VALUE_PARAMETER name: type:kotlin.Any VALUE_PARAMETER name:other index:0 type:kotlin.Any? FUN FAKE_OVERRIDE name:hashCode visibility:public modality:OPEN <> ($this:kotlin.Any) returnType:kotlin.Int [fake_override] overridden: public open fun hashCode (): kotlin.Int declared in kotlin.Any $this: VALUE_PARAMETER name: type:kotlin.Any FUN FAKE_OVERRIDE name:toString visibility:public modality:OPEN <> ($this:kotlin.Any) returnType:kotlin.String [fake_override] overridden: public open fun toString (): kotlin.String declared in kotlin.Any $this: VALUE_PARAMETER name: type:kotlin.Any CLASS CLASS name:Context modality:FINAL visibility:public superTypes:[kotlin.Any] $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.Context CONSTRUCTOR visibility:public <> () returnType:.Context [primary] BLOCK_BODY DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:Context modality:FINAL visibility:public superTypes:[kotlin.Any]' FUN FAKE_OVERRIDE name:equals visibility:public modality:OPEN <> ($this:kotlin.Any, other:kotlin.Any?) returnType:kotlin.Boolean [fake_override,operator] overridden: public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in kotlin.Any $this: VALUE_PARAMETER name: type:kotlin.Any VALUE_PARAMETER name:other index:0 type:kotlin.Any? FUN FAKE_OVERRIDE name:hashCode visibility:public modality:OPEN <> ($this:kotlin.Any) returnType:kotlin.Int [fake_override] overridden: public open fun hashCode (): kotlin.Int declared in kotlin.Any $this: VALUE_PARAMETER name: type:kotlin.Any FUN FAKE_OVERRIDE name:toString visibility:public modality:OPEN <> ($this:kotlin.Any) returnType:kotlin.String [fake_override] overridden: public open fun toString (): kotlin.String declared in kotlin.Any $this: VALUE_PARAMETER name: type:kotlin.Any FUN name:c visibility:public modality:FINAL <> ($this:.Context) returnType:kotlin.Int $this: VALUE_PARAMETER name: type:.Context BLOCK_BODY RETURN type=kotlin.Nothing from='public final fun c (): kotlin.Int declared in .Context' CONST Int type=kotlin.Int value=1 FUN name:box visibility:public modality:FINAL <> () returnType:kotlin.String BLOCK_BODY RETURN type=kotlin.Nothing from='public final fun box (): kotlin.String declared in ' CALL 'public final fun with (receiver: T of kotlin.with, block: @[ExtensionFunctionType] kotlin.Function1): R of kotlin.with declared in kotlin' type=kotlin.Nothing origin=null : .Context : kotlin.Nothing receiver: CONSTRUCTOR_CALL 'public constructor () declared in .Context' type=.Context origin=null block: FUN_EXPR type=@[ExtensionFunctionType] kotlin.Function1<.Context, kotlin.Nothing> origin=LAMBDA FUN LOCAL_FUNCTION_FOR_LAMBDA name: visibility:local modality:FINAL <> ($receiver:.Context) returnType:kotlin.Nothing $receiver: VALUE_PARAMETER name:$this$with type:.Context BLOCK_BODY VAR name:result type:kotlin.Int [var] CONST Int type=kotlin.Int value=0 SET_VAR 'var result: kotlin.Int declared in .box.' type=kotlin.Unit origin=PLUSEQ CALL 'public final fun plus (other: kotlin.Int): kotlin.Int declared in kotlin.Int' type=kotlin.Int origin=PLUSEQ $this: GET_VAR 'var result: kotlin.Int declared in .box.' type=kotlin.Int origin=PLUSEQ other: CALL 'public final fun testInline ($context_receiver_0: .Context): kotlin.Int declared in ' type=kotlin.Int origin=null $context_receiver_0: GET_VAR '$this$with: .Context declared in .box.' type=.Context origin=null SET_VAR 'var result: kotlin.Int declared in .box.' type=kotlin.Unit origin=PLUSEQ CALL 'public final fun plus (other: kotlin.Int): kotlin.Int declared in kotlin.Int' type=kotlin.Int origin=PLUSEQ $this: GET_VAR 'var result: kotlin.Int declared in .box.' type=kotlin.Int origin=PLUSEQ other: CALL 'public final fun testInlineWithArg ($context_receiver_0: .Context, i: kotlin.Int): kotlin.Int declared in ' type=kotlin.Int origin=null $context_receiver_0: GET_VAR '$this$with: .Context declared in .box.' type=.Context origin=null i: CONST Int type=kotlin.Int value=1 SET_VAR 'var result: kotlin.Int declared in .box.' type=kotlin.Unit origin=PLUSEQ CALL 'public final fun plus (other: kotlin.Int): kotlin.Int declared in kotlin.Int' type=kotlin.Int origin=PLUSEQ $this: GET_VAR 'var result: kotlin.Int declared in .box.' type=kotlin.Int origin=PLUSEQ other: CALL 'public final fun testInlineWithExtensionAndArg ($context_receiver_0: .Context, i: kotlin.Int): kotlin.Int declared in ' type=kotlin.Int origin=null $receiver: CONST Int type=kotlin.Int value=1 $context_receiver_0: GET_VAR '$this$with: .Context declared in .box.' type=.Context origin=null i: CONST Int type=kotlin.Int value=1 SET_VAR 'var result: kotlin.Int declared in .box.' type=kotlin.Unit origin=PLUSEQ CALL 'public final fun plus (other: kotlin.Int): kotlin.Int declared in kotlin.Int' type=kotlin.Int origin=PLUSEQ $this: GET_VAR 'var result: kotlin.Int declared in .box.' type=kotlin.Int origin=PLUSEQ other: CALL 'public final fun testInlineWithExtensionAndMultipleArgs ($context_receiver_0: .Context, i1: kotlin.Int, i2: kotlin.Int): kotlin.Int declared in ' type=kotlin.Int origin=null $receiver: CONST Int type=kotlin.Int value=1 $context_receiver_0: GET_VAR '$this$with: .Context declared in .box.' type=.Context origin=null i1: CONST Int type=kotlin.Int value=1 i2: CONST Int type=kotlin.Int value=2 CALL 'public final fun with (receiver: T of kotlin.with, block: @[ExtensionFunctionType] kotlin.Function1): R of kotlin.with declared in kotlin' type=kotlin.Unit origin=null : .A : kotlin.Unit receiver: CONSTRUCTOR_CALL 'public constructor (a: kotlin.Any?) declared in .A' type=.A origin=null a: CONST Int type=kotlin.Int value=1 block: FUN_EXPR type=@[ExtensionFunctionType] kotlin.Function1<.A, kotlin.Unit> origin=LAMBDA FUN LOCAL_FUNCTION_FOR_LAMBDA name: visibility:local modality:FINAL <> ($receiver:.A) returnType:kotlin.Unit $receiver: VALUE_PARAMETER name:$this$with type:.A BLOCK_BODY SET_VAR 'var result: kotlin.Int declared in .box.' type=kotlin.Unit origin=PLUSEQ CALL 'public final fun plus (other: kotlin.Int): kotlin.Int declared in kotlin.Int' type=kotlin.Int origin=PLUSEQ $this: GET_VAR 'var result: kotlin.Int declared in .box.' type=kotlin.Int origin=PLUSEQ other: CALL 'public final fun testInlineWithExtensionAndMultipleContextsAndArgs ($context_receiver_0: .Context, $context_receiver_1: .A, i1: kotlin.Int, i2: kotlin.Int): kotlin.Int declared in ' type=kotlin.Int origin=null $receiver: CONST Int type=kotlin.Int value=1 $context_receiver_0: GET_VAR '$this$with: .Context declared in .box.' type=.Context origin=null $context_receiver_1: GET_VAR '$this$with: .A declared in .box..' type=.A origin=null i1: CONST Int type=kotlin.Int value=1 i2: CONST Int type=kotlin.Int value=2 SET_VAR 'var result: kotlin.Int declared in .box.' type=kotlin.Unit origin=PLUSEQ CALL 'public final fun plus (other: kotlin.Int): kotlin.Int declared in kotlin.Int' type=kotlin.Int origin=PLUSEQ $this: GET_VAR 'var result: kotlin.Int declared in .box.' type=kotlin.Int origin=PLUSEQ other: CALL 'public final fun testInlineWithExtensionAndMultipleContextsAndArgs ($context_receiver_0: .Context, $context_receiver_1: .A, i1: kotlin.Int, i2: kotlin.Int): kotlin.Int declared in ' type=kotlin.Int origin=null $receiver: CONST Int type=kotlin.Int value=1 $context_receiver_0: GET_VAR '$this$with: .Context declared in .box.' type=.Context origin=null $context_receiver_1: GET_VAR '$this$with: .A declared in .box..' type=.A origin=null RETURN type=kotlin.Nothing from='public final fun box (): kotlin.String declared in ' WHEN type=kotlin.String origin=IF BRANCH if: CALL 'public final fun EQEQ (arg0: kotlin.Any?, arg1: kotlin.Any?): kotlin.Boolean declared in kotlin.internal.ir' type=kotlin.Boolean origin=EQEQ arg0: GET_VAR 'var result: kotlin.Int declared in .box.' type=kotlin.Int origin=null arg1: CONST Int type=kotlin.Int value=23 then: CONST String type=kotlin.String value="OK" BRANCH if: CONST Boolean type=kotlin.Boolean value=true then: CONST String type=kotlin.String value="fail" FUN name:testInline visibility:public modality:FINAL <> ($context_receiver_0:.Context) returnType:kotlin.Int [inline] contextReceiverParametersCount: 1 VALUE_PARAMETER name:$context_receiver_0 index:0 type:.Context BLOCK_BODY RETURN type=kotlin.Nothing from='public final fun testInline ($context_receiver_0: .Context): kotlin.Int declared in ' CALL 'public final fun c (): kotlin.Int declared in .Context' type=kotlin.Int origin=null $this: GET_VAR '$context_receiver_0: .Context declared in .testInline' type=.Context origin=null FUN name:testInlineWithArg visibility:public modality:FINAL <> ($context_receiver_0:.Context, i:kotlin.Int) returnType:kotlin.Int [inline] contextReceiverParametersCount: 1 VALUE_PARAMETER name:$context_receiver_0 index:0 type:.Context VALUE_PARAMETER name:i index:1 type:kotlin.Int BLOCK_BODY RETURN type=kotlin.Nothing from='public final fun testInlineWithArg ($context_receiver_0: .Context, i: kotlin.Int): kotlin.Int declared in ' CALL 'public final fun plus (other: kotlin.Int): kotlin.Int declared in kotlin.Int' type=kotlin.Int origin=PLUS $this: GET_VAR 'i: kotlin.Int declared in .testInlineWithArg' type=kotlin.Int origin=null other: CALL 'public final fun c (): kotlin.Int declared in .Context' type=kotlin.Int origin=null $this: GET_VAR '$context_receiver_0: .Context declared in .testInlineWithArg' type=.Context origin=null FUN name:testInlineWithExtensionAndArg visibility:public modality:FINAL <> ($receiver:kotlin.Int, $context_receiver_0:.Context, i:kotlin.Int) returnType:kotlin.Int [inline] contextReceiverParametersCount: 1 $receiver: VALUE_PARAMETER name: type:kotlin.Int VALUE_PARAMETER name:$context_receiver_0 index:0 type:.Context VALUE_PARAMETER name:i index:1 type:kotlin.Int BLOCK_BODY RETURN type=kotlin.Nothing from='public final fun testInlineWithExtensionAndArg ($context_receiver_0: .Context, i: kotlin.Int): kotlin.Int declared in ' CALL 'public final fun plus (other: kotlin.Int): kotlin.Int declared in kotlin.Int' type=kotlin.Int origin=PLUS $this: CALL 'public final fun plus (other: kotlin.Int): kotlin.Int declared in kotlin.Int' type=kotlin.Int origin=PLUS $this: GET_VAR ': kotlin.Int declared in .testInlineWithExtensionAndArg' type=kotlin.Int origin=null other: GET_VAR 'i: kotlin.Int declared in .testInlineWithExtensionAndArg' type=kotlin.Int origin=null other: CALL 'public final fun c (): kotlin.Int declared in .Context' type=kotlin.Int origin=null $this: GET_VAR '$context_receiver_0: .Context declared in .testInlineWithExtensionAndArg' type=.Context origin=null FUN name:testInlineWithExtensionAndMultipleArgs visibility:public modality:FINAL <> ($receiver:kotlin.Int, $context_receiver_0:.Context, i1:kotlin.Int, i2:kotlin.Int) returnType:kotlin.Int [inline] contextReceiverParametersCount: 1 $receiver: VALUE_PARAMETER name: type:kotlin.Int VALUE_PARAMETER name:$context_receiver_0 index:0 type:.Context VALUE_PARAMETER name:i1 index:1 type:kotlin.Int VALUE_PARAMETER name:i2 index:2 type:kotlin.Int BLOCK_BODY RETURN type=kotlin.Nothing from='public final fun testInlineWithExtensionAndMultipleArgs ($context_receiver_0: .Context, i1: kotlin.Int, i2: kotlin.Int): kotlin.Int declared in ' CALL 'public final fun plus (other: kotlin.Int): kotlin.Int declared in kotlin.Int' type=kotlin.Int origin=PLUS $this: CALL 'public final fun plus (other: kotlin.Int): kotlin.Int declared in kotlin.Int' type=kotlin.Int origin=PLUS $this: CALL 'public final fun plus (other: kotlin.Int): kotlin.Int declared in kotlin.Int' type=kotlin.Int origin=PLUS $this: GET_VAR ': kotlin.Int declared in .testInlineWithExtensionAndMultipleArgs' type=kotlin.Int origin=null other: GET_VAR 'i1: kotlin.Int declared in .testInlineWithExtensionAndMultipleArgs' type=kotlin.Int origin=null other: GET_VAR 'i2: kotlin.Int declared in .testInlineWithExtensionAndMultipleArgs' type=kotlin.Int origin=null other: CALL 'public final fun c (): kotlin.Int declared in .Context' type=kotlin.Int origin=null $this: GET_VAR '$context_receiver_0: .Context declared in .testInlineWithExtensionAndMultipleArgs' type=.Context origin=null FUN name:testInlineWithExtensionAndMultipleContextsAndArgs visibility:public modality:FINAL <> ($receiver:kotlin.Int, $context_receiver_0:.Context, $context_receiver_1:.A, i1:kotlin.Int, i2:kotlin.Int) returnType:kotlin.Int [inline] contextReceiverParametersCount: 2 $receiver: VALUE_PARAMETER name: type:kotlin.Int VALUE_PARAMETER name:$context_receiver_0 index:0 type:.Context VALUE_PARAMETER name:$context_receiver_1 index:1 type:.A VALUE_PARAMETER name:i1 index:2 type:kotlin.Int EXPRESSION_BODY CONST Int type=kotlin.Int value=1 VALUE_PARAMETER name:i2 index:3 type:kotlin.Int EXPRESSION_BODY CONST Int type=kotlin.Int value=2 BLOCK_BODY RETURN type=kotlin.Nothing from='public final fun testInlineWithExtensionAndMultipleContextsAndArgs ($context_receiver_0: .Context, $context_receiver_1: .A, i1: kotlin.Int, i2: kotlin.Int): kotlin.Int declared in ' CALL 'public final fun plus (other: kotlin.Int): kotlin.Int declared in kotlin.Int' type=kotlin.Int origin=PLUS $this: CALL 'public final fun plus (other: kotlin.Int): kotlin.Int declared in kotlin.Int' type=kotlin.Int origin=PLUS $this: CALL 'public final fun plus (other: kotlin.Int): kotlin.Int declared in kotlin.Int' type=kotlin.Int origin=PLUS $this: CALL 'public final fun plus (other: kotlin.Int): kotlin.Int declared in kotlin.Int' type=kotlin.Int origin=PLUS $this: GET_VAR ': kotlin.Int declared in .testInlineWithExtensionAndMultipleContextsAndArgs' type=kotlin.Int origin=null other: GET_VAR 'i1: kotlin.Int declared in .testInlineWithExtensionAndMultipleContextsAndArgs' type=kotlin.Int origin=null other: GET_VAR 'i2: kotlin.Int declared in .testInlineWithExtensionAndMultipleContextsAndArgs' type=kotlin.Int origin=null other: CALL 'public final fun c (): kotlin.Int declared in .Context' type=kotlin.Int origin=null $this: GET_VAR '$context_receiver_0: .Context declared in .testInlineWithExtensionAndMultipleContextsAndArgs' type=.Context origin=null other: WHEN type=kotlin.Int origin=IF BRANCH if: CALL 'public final fun EQEQ (arg0: kotlin.Any?, arg1: kotlin.Any?): kotlin.Boolean declared in kotlin.internal.ir' type=kotlin.Boolean origin=EQEQ arg0: CALL 'public final fun (): kotlin.Any? declared in .A' type=kotlin.Any? origin=GET_PROPERTY $this: GET_VAR '$context_receiver_1: .A declared in .testInlineWithExtensionAndMultipleContextsAndArgs' type=.A origin=null arg1: CONST Null type=kotlin.Nothing? value=null then: CONST Int type=kotlin.Int value=0 BRANCH if: CONST Boolean type=kotlin.Boolean value=true then: CONST Int type=kotlin.Int value=1