summaryrefslogtreecommitdiff
path: root/test/files/neg/annot-nonconst.scala
blob: 69bb60d34eed35b3efb8de138cca542376bdec24 (plain) (blame)
1
2
3
4
5
6
7
8
class Length(value: Int) extends ClassfileAnnotation
class Ann2(value: String) extends ClassfileAnnotation

object Test {
  def n = 15
  @Length(n) def foo = "foo"
  @Ann2(null) def bar = "bar"
}