Youssef Shoaib [MOD]
06/04/2022, 11:57 AMjava.lang.IllegalArgumentException: No argument for parameter VALUE_PARAMETER name:_context_receiver_1 index:1
. The printed IR shows that the function I'm calling has a dispatch receiver, 2 context receivers, and a normal parameter, but the IR calls it just by providing the dispatch receiver and the parameter:
CALL 'public abstract fun display <T1, SubT1> (_context_receiver_0: <root>.Kind<T1 of <root>.Display.display, SubT1 of <root>.Display.display>, _context_receiver_1: <root>.Display<SubT1 of <root>.Display.display, SubT1 of <root>.Display.display>, t1: T1 of <root>.Display.display): kotlin.String declared in <root>.Display' type=kotlin.String origin=null
<T1>: SubT1 of <root>.ListDisplay.display$lambda-0
<SubT1>: SubT1 of <root>.ListDisplay.display$lambda-0
$this: GET_FIELD 'FIELD FIELD_FOR_CAPTURED_VALUE name:$_context_receiver_1 type:<root>.Display<SubT1 of <root>.ListDisplay.display$lambda-0, SubT1 of <root>.ListDisplay.display$lambda-0> visibility:public/*package*/ [final]' type=<root>.Display<SubT1 of <root>.ListDisplay.display$lambda-0, SubT1 of <root>.ListDisplay.display$lambda-0> origin=null
receiver: GET_VAR '<this>: <root>.ListDisplay.display$lambda-0.<no name provided> declared in <root>.ListDisplay.display$lambda-0.<no name provided>.invoke' type=<root>.ListDisplay.display$lambda-0.<no name provided> origin=null
_context_receiver_0: TYPE_OP type=SubT1 of <root>.ListDisplay.display$lambda-0 origin=CAST typeOperand=SubT1 of <root>.ListDisplay.display$lambda-0
GET_VAR 'it: kotlin.Any? declared in <root>.ListDisplay.display$lambda-0.<no name provided>.invoke' type=kotlin.Any? origin=null
Is this even worth reporting? Because it seems like FIR obviously doesn't support the basic functionality of context receivers. Is there anywhere I can see the progress of FIR at least? any specific youtrack issues I should be on the lookout for?dmitriy.novozhilov
06/04/2022, 12:02 PM1.7.20-dev-1687
from bootstrap repo instead of 1.7.0-RC
If it will still appear then please report a ticket with reproducerdmitriy.novozhilov
06/04/2022, 12:02 PMYoussef Shoaib [MOD]
06/04/2022, 12:19 PMYoussef Shoaib [MOD]
06/04/2022, 12:22 PMdmitriy.novozhilov
06/04/2022, 1:15 PMIs it worth it though to report FIR bugs, especially with context receivers?
Yes, it will be very helpful. Right now we are at the stage when we fixed all critical places and we're looking for bugs by compiling some opensource projects, which takes a lot of timedmitriy.novozhilov
06/04/2022, 1:17 PMYoussef Shoaib [MOD]
06/07/2022, 6:58 AM