IR testData: IrSimpleFunction.isOperator
This commit is contained in:
+4
-4
@@ -2,15 +2,15 @@
|
||||
// FUN: foo
|
||||
BB 0
|
||||
CONTENT
|
||||
1 FUN name:foo visibility:public modality:FINAL <> (arg:kotlin.Int) returnType:kotlin.Int
|
||||
1 FUN name:foo visibility:public modality:FINAL <> (arg:kotlin.Int) returnType:kotlin.Int
|
||||
2 GET_VAR 'arg: kotlin.Int declared in <root>.foo' type=kotlin.Int origin=null
|
||||
3 CONST Int type=kotlin.Int value=2
|
||||
4 CALL 'public final fun times (other: kotlin.Int): kotlin.Int declared in kotlin.Int' type=kotlin.Int origin=MUL
|
||||
5 VAR name:dbl type:kotlin.Int [val]
|
||||
4 CALL 'public final fun times (other: kotlin.Int): kotlin.Int [operator] declared in kotlin.Int' type=kotlin.Int origin=MUL
|
||||
5 VAR name:dbl type:kotlin.Int [val]
|
||||
6 GET_VAR 'val dbl: kotlin.Int [val] declared in <root>.foo' type=kotlin.Int origin=null
|
||||
7 RETURN type=kotlin.Nothing from='public final fun foo (arg: kotlin.Int): kotlin.Int declared in <root>'
|
||||
OUTGOING -> NONE
|
||||
Function exit: FUN name:foo visibility:public modality:FINAL <> (arg:kotlin.Int) returnType:kotlin.Int
|
||||
Function exit: FUN name:foo visibility:public modality:FINAL <> (arg:kotlin.Int) returnType:kotlin.Int
|
||||
|
||||
// END FUN: foo
|
||||
|
||||
|
||||
Reference in New Issue
Block a user