KT-12077 Code completion inserts FQN for annotations with use-site target inside primary constructor

KT-13009 Kotlin: annotation auto-import is broken in multiple ways

  #KT-12077 Fixed
  #KT-13009 Fixed
This commit is contained in:
Valentin Kipyatkov
2016-10-10 19:32:33 +03:00
parent 0c14058d13
commit 73dc5fefcb
16 changed files with 159 additions and 17 deletions
@@ -0,0 +1,24 @@
// FILE: first.before.kt
// "Import" "true"
// ERROR: Unresolved reference: SomeAnnotation
package some
class X(@set:SomeAnnotation<caret> var field: Int)
//-----------------------
// FILE: second.kt
package other
annotation class SomeAnnotation
//-----------------------
// FILE: first.after.kt
// "Import" "true"
// ERROR: Unresolved reference: SomeAnnotation
package some
import other.SomeAnnotation
class X(@set:SomeAnnotation<caret> var field: Int)
//-----------------------