Files
kotlin-fork/idea/idea-completion/testData/weighers/basic/DslCallsWithMultipleReceivers.kt
T

42 lines
426 B
Kotlin
Vendored

// RUNTIME
package test
class HasFoo {
fun foo10() {
}
}
fun main() {
val foo5 = 3
with(0) {
with("") {
with(HasFoo()) {
r {
foo<caret>
}
}
}
}
}
@DslMarker
annotation class Dsl
@Dsl
class R
fun r(body: R.() -> Unit) {
}
fun foo1(i: Int) {
}
// ORDER: foo2
// ORDER: foo10
// ORDER: foo1
// ORDER: foo5