L-value of assignment expression can now be annotated with expression-targeted annotation #KT-9154 Fixed
This commit is contained in:
@@ -0,0 +1,9 @@
|
||||
@Target(AnnotationTarget.EXPRESSION)
|
||||
annotation class ExprAnn
|
||||
|
||||
fun foo(): Int {
|
||||
var a: Int
|
||||
@ExprAnn a = 1
|
||||
@ExprAnn a += 1
|
||||
return a
|
||||
}
|
||||
Reference in New Issue
Block a user