https://kotlinlang.org logo
Title
t

Tmpod

01/21/2023, 5:26 PM
Hello! It seems I get a compiler error whenever I try to get a reference from a function with the new context receivers. Am I doing something wrong or is this an actual compiler bug? Code:
context(Foo, Bar)
fun bar() { }

...

val foo = ::bar
Error:
The root cause java.lang.AssertionError was thrown at: org.jetbrains.kotlin.ir.expressions.IrMemberAccessExpression.getValueArgument(IrMemberAccessExpression.kt:43)
s

Sam

01/23/2023, 4:09 PM
There’s a similar known issue https://youtrack.jetbrains.com/issue/KT-55188, maybe this has the same cause?
t

Tmpod

01/23/2023, 8:50 PM
I'll look into it, thank you!