Unresolved annotations for block


#1

given following code:

class Foo {   foo test bar {   println("hello world!")   } }

fun main(args : Array<String>) {
  Foo()
}


execution result would be “hello world!”

what are “foo”, “test” and “bar”?  can we say compiler considering them as unresolved user defined annotations and ignoring them?


#2

These are annotations, should be resolved and thus yield errors (as such annotation classes are not in scope)