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

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