jw
02/07/2023, 4:05 AM<http://IrConstImpl.int|IrConstImpl.int>
from a Function0<Int>
lambda/local function that i've created?jw
02/07/2023, 4:06 AMbody = DeclarationIrBuilder(pluginContext, symbol).irExprBody(replacement)
where replacement
is the IrConst
, but that breaks the JVM verifier and LLVMjw
02/07/2023, 4:10 AMYoussef Shoaib [MOD]
02/07/2023, 7:51 PMjw
02/07/2023, 7:54 PMYoussef Shoaib [MOD]
02/07/2023, 8:02 PMjw
02/08/2023, 4:09 AMshikasd
02/08/2023, 11:33 AMjw
02/08/2023, 12:43 PMjw
02/08/2023, 12:44 PMjw
02/08/2023, 1:34 PMjava.lang.VerifyError: Bad type on operand stack
Exception Details:
Location:
com/example/cite/LambdasKt$propertyReferenceLine$1.invoke()Ljava/lang/Integer; @2: checkcast
Reason:
Type integer (current frame, stack[0]) is not assignable to 'java/lang/Object'
Current Frame:
bci: @2
flags: { }
locals: { 'com/example/cite/LambdasKt$propertyReferenceLine$1' }
stack: { integer }
Bytecode:
0000000: 100e c000 13b0
shikasd
02/08/2023, 1:39 PMval a = { 0 }
and check what it gets compiled to on IR leveljw
02/08/2023, 2:04 PMjw
02/08/2023, 2:05 PMshikasd
02/08/2023, 2:15 PMjw
02/08/2023, 2:18 PMshikasd
02/08/2023, 2:19 PM