Fix completing members for receivers shadowed by DslMarker
#KT-20396 Fixed
This commit is contained in:
@@ -0,0 +1,6 @@
|
||||
package bar
|
||||
|
||||
import baz.*
|
||||
|
||||
fun B.booExtension() {}
|
||||
fun A.booExtensionToA() {}
|
||||
@@ -0,0 +1,35 @@
|
||||
// RUNTIME
|
||||
|
||||
package baz
|
||||
|
||||
@DslMarker
|
||||
annotation class Marker
|
||||
|
||||
@Marker
|
||||
class A {
|
||||
val booFromA = ""
|
||||
|
||||
fun booFromA2() {}
|
||||
|
||||
fun section(block: B.() -> Unit) {}
|
||||
}
|
||||
|
||||
@Marker
|
||||
class B {
|
||||
fun booFromB() {}
|
||||
}
|
||||
|
||||
fun x() {
|
||||
A().apply {
|
||||
section {
|
||||
boo<caret>
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
fun booUnrelated() {
|
||||
|
||||
}
|
||||
|
||||
// ORDER: booFromB, booUnrelated, booleanArrayOf, booExtension
|
||||
Reference in New Issue
Block a user