Object literals are now classes and expressions simultaneously for the purposes of annotation target checking
This commit is contained in:
@@ -0,0 +1,8 @@
|
||||
@Target(AnnotationTarget.CLASS)
|
||||
annotation class Ann
|
||||
|
||||
open class My
|
||||
|
||||
fun foo(): My {
|
||||
return (@Ann object: My() {})
|
||||
}
|
||||
Reference in New Issue
Block a user