summaryrefslogtreecommitdiff
path: root/test/files/run/t6548.scala
blob: b4d09fd8f6275dd6274d5af143580525daee9802 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
import scala.reflect.runtime.universe._
import scala.reflect.runtime.{currentMirror => cm}

class Bean {
  @JavaAnnotationWithNestedEnum(JavaAnnotationWithNestedEnum.Value.VALUE)
  def value = 1
}

object Test extends App {
  println(cm.staticClass("Bean").isCaseClass)
  println(typeOf[Bean].declaration(TermName("value")).annotations)
}