[AA] KT-55098 Render context receivers in declarations & function types
- `context(...)` is a modifier that must precede annotations and other modifiers, so for declarations it is rendered in `renderAnnotationsAndModifiers`. - Ignore `@ContextFunctionTypeParams` in the annotation list of FE10 types, as the annotation is an implementation detail of context receivers in K1 and shouldn't be rendered. ^KT-55098 fixed
This commit is contained in:
committed by
Space Team
parent
e2804693bf
commit
2cd16f055a
+1
@@ -1,3 +1,4 @@
|
||||
context(kotlin.Int, s@kotlin.String)
|
||||
class A {
|
||||
constructor(int: kotlin.Int)
|
||||
}
|
||||
|
||||
+1
@@ -1 +1,2 @@
|
||||
context(kotlin.Int, s@kotlin.String)
|
||||
fun y()
|
||||
|
||||
+1
@@ -1,2 +1,3 @@
|
||||
context(kotlin.Int, s@kotlin.String)
|
||||
val y: kotlin.Int
|
||||
get()
|
||||
Vendored
+4
@@ -1,9 +1,13 @@
|
||||
context(A)
|
||||
fun tooo()
|
||||
|
||||
context(B)
|
||||
fun tooo()
|
||||
|
||||
context(A, B)
|
||||
fun tooo()
|
||||
|
||||
context(B, A)
|
||||
fun tooo()
|
||||
|
||||
class A
|
||||
|
||||
Reference in New Issue
Block a user