aboutsummaryrefslogtreecommitdiff
path: root/tests/untried/pos/spec-annotations.scala
diff options
context:
space:
mode:
Diffstat (limited to 'tests/untried/pos/spec-annotations.scala')
-rw-r--r--tests/untried/pos/spec-annotations.scala35
1 files changed, 0 insertions, 35 deletions
diff --git a/tests/untried/pos/spec-annotations.scala b/tests/untried/pos/spec-annotations.scala
deleted file mode 100644
index b23abf48e..000000000
--- a/tests/untried/pos/spec-annotations.scala
+++ /dev/null
@@ -1,35 +0,0 @@
-class ann(i: Int) extends scala.annotation.Annotation
-
-// annotations on abstract types
-abstract class C1[@annotation.elidable(0) +T, U, V[_]]
-abstract class C2[@deprecated
- @ann(1) T <: Number,
- V]
-abstract class C3 {
- @ann(2) type X <: Number
-}
-
-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"
- def e[@deprecated T, U](x: T) = x
-
- //bug #1214
- val y = new (Integer @ann(0))(2)
-
- import scala.beans.BeanProperty
-
- // bug #637
- trait S { def getField(): Int }
- class O extends S { @BeanProperty val field = 0 }
-
- // bug #1070
- trait T { @BeanProperty var field = 1 }
-}
-