Files
kotlin-fork/idea/idea-completion/testData/basic/common/primitiveCompletion/implicitReceiverCompletion.kt
T
Roman Golyshev ffb907150a Use information about receivers in completion
- Found few problems during resolving a single functon; disabled
assertions and marked them with TODO
- Add simple completion tests to simplify development
2020-08-09 12:01:00 +03:00

24 lines
274 B
Kotlin
Vendored

class A {
fun aa() {}
val aaa = 10
}
fun A.run(action: A.() -> Unit) {}
fun test(a: A) {
a.run {
<caret>
// remove this
Unit
}
}
// this does not work for some reason
//fun A.test() {
//}
// EXIST: aa
// EXIST: aaa
// EXIST: run