1 2 3 4 5 6 7 8 9
object test { class annot extends Annotation def foo { @annot def bar(i: Int): Int = i @annot class Silly { } bar(5) } }