Hello! It seems I get a compiler error whenever I ...
# compiler
t
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:
Copy 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
There’s a similar known issue https://youtrack.jetbrains.com/issue/KT-55188, maybe this has the same cause?
t
I'll look into it, thank you!