Auto-import fix should suggest declarations that cannot be used in this position

This also should fix KT-9122 Assertion error when psi modified from IDE

 #KT-9122 Fixed
This commit is contained in:
Valentin Kipyatkov
2015-10-02 18:50:08 +03:00
parent ab5fe60bbe
commit 1bb6dae444
5 changed files with 41 additions and 3 deletions
@@ -0,0 +1,13 @@
// "class org.jetbrains.kotlin.idea.quickfix.AutoImportFix" "false"
// ERROR: Unresolved reference: infix
package x
object infix {
fun invoke() {
}
}
fun x() {
"" <caret>infix ""
}
@@ -0,0 +1,13 @@
// "Import" "true"
// ERROR: Unresolved reference: infix
package x
object infix {
fun invoke() {
}
}
fun x() {
"" <caret>infix ""
}