Franklin
02/20/2023, 2:22 AMAs a matter of coding style, context receivers are defined after annotations and before other modifiers on a separate line.https://github.com/Kotlin/KEEP/blob/master/proposals/context-receivers.md#detailed-design But when I try
class A
@Deprecated(message = "")
context(A)
fun Method() {}
It raises an error during compilation Expecting a top level declaration
. I have to swap the order around and declare context
first then the annotation. On Kotlin 1.8.0
Is it just me? should I raise this as a bug on Youtrack?ephemient
02/20/2023, 2:27 AMFranklin
02/20/2023, 2:47 AM