summaryrefslogblamecommitdiff
path: root/test/files/pos/annotations.scala
blob: d96c8e0c6a57d4247825c28bf18a83a5dfdcc613 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
12











                                              
class ann(i: Int) extends Annotation

object Test {

  // bug #1028
  val x = 1
  @ann(x) val a = ()
  @ann({val y = 2; y}) val b = ()

  def c: Int @ann(x) = 1
  def d: String @ann({val z = 0; z - 1}) = "2"
}