Annotations on object literals are now correctly resolved #KT-9320 Fixed

This commit is contained in:
Mikhail Glukhikh
2016-01-28 20:13:24 +03:00
parent a041414f35
commit 84100abd9e
10 changed files with 110 additions and 4 deletions
@@ -0,0 +1,11 @@
annotation class Ann
@Ann open class My
@Target(AnnotationTarget.EXPRESSION)
annotation class AnnExpr
fun foo() {
val v = @Ann @AnnExpr object: My() {}
val w = @Ann @AnnExpr { v: My -> v.hashCode() }
}