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
This commit is contained in:
Roman Golyshev
2020-07-01 14:30:40 +03:00
committed by Ilya Kirillov
parent 0f5fc1fa99
commit ffb907150a
18 changed files with 403 additions and 78 deletions
@@ -0,0 +1,24 @@
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