I'm using context receivers in a few places and ju...
# language-evolution
w
I'm using context receivers in a few places and just put a context receiver on an interface. The code compiles, but I'm not really sure what it does. It doesn't seem to add the receiver to implementations of the interface, and I can't use the receiver in default function implementations. Is there any meaning at all to a context receiver on an interface? If not, should it be a compile error?
j
You can’t use context receivers over interfaces or object, so it is a bug that it is not marked as an error
And probably it is already reported
context receivers is another way to use arguments like you would do with constructors or functions. If you can’t use a normal argument somewhere, you can’t use a context receiver too, if it is not failing, it is a bug
w
Yeah, that's what I thought. Thank you.
🙂 1
Do you know where I would find or report the issue?
w
Right, I forgot about youtrack; I always look for github issues. Thank you