Fixed KT-2483 "Add import" quick fix offers adding import to non-API class

#KT-2483 Fixed
This commit is contained in:
Valentin Kipyatkov
2015-02-10 13:14:47 +03:00
parent 546836d5dd
commit b091eaa3cd
5 changed files with 28 additions and 3 deletions
@@ -0,0 +1,6 @@
// "class com.intellij.codeInsight.daemon.impl.quickfix.ImportClassFixBase" "false"
// ERROR: Unresolved reference: Nested
fun test() {
Nested
}
@@ -0,0 +1,10 @@
// "class com.intellij.codeInsight.daemon.impl.quickfix.ImportClassFixBase" "false"
// ACTION: Create local variable 'Nested'
// ACTION: Create object 'Nested'
// ACTION: Create parameter 'Nested'
// ACTION: Create property 'Nested'
// ERROR: Unresolved reference: Nested
fun test() {
<caret>Nested
}
@@ -0,0 +1,5 @@
package sometest
private class PrivateClass {
class Nested
}