Object literals are now classes and expressions simultaneously for the purposes of annotation target checking

This commit is contained in:
Mikhail Glukhikh
2015-09-23 13:55:16 +03:00
parent dd4601fd08
commit c4fb6d48c5
5 changed files with 39 additions and 4 deletions
@@ -0,0 +1,8 @@
@Target(AnnotationTarget.CLASS)
annotation class Ann
open class My
fun foo(): My {
return (@Ann object: My() {})
}