Take Java source file into account in "Add annotation target"

So #KT-22860 Fixed
This commit is contained in:
Felix Guo
2018-03-09 20:37:46 +03:00
committed by Mikhail Glukhikh
parent 5559a6edd3
commit 9539212180
6 changed files with 94 additions and 6 deletions
@@ -0,0 +1,14 @@
// "Add annotation target" "true"
// ERROR: This annotation is not applicable to target 'expression'
package test
annotation class AnnTarget
fun println(v: Int) {}
fun apply() {
var v = 0
<caret>@AnnTarget v++
println(v)
}