diff options
author | Lukas Rytz <lukas.rytz@epfl.ch> | 2009-05-30 18:10:21 +0000 |
---|---|---|
committer | Lukas Rytz <lukas.rytz@epfl.ch> | 2009-05-30 18:10:21 +0000 |
commit | c6cf4fc02204d20f792bd493641d8ccd12421800 (patch) | |
tree | a8827ab270cf77a1c5f36a48a8cf125e1bcfb8c3 /test/files/run | |
parent | ab9381b4539097205d19df235f8cc3a5b2349e95 (diff) | |
download | scala-c6cf4fc02204d20f792bd493641d8ccd12421800.tar.gz scala-c6cf4fc02204d20f792bd493641d8ccd12421800.tar.bz2 scala-c6cf4fc02204d20f792bd493641d8ccd12421800.zip |
big overhaul of annotations implementation.
Diffstat (limited to 'test/files/run')
-rw-r--r-- | test/files/run/docgenerator.scala | 12 | ||||
-rw-r--r-- | test/files/run/t1500.scala | 2 | ||||
-rw-r--r-- | test/files/run/t1501.scala | 2 |
3 files changed, 8 insertions, 8 deletions
diff --git a/test/files/run/docgenerator.scala b/test/files/run/docgenerator.scala index e3f724a603..f3738f4fc0 100644 --- a/test/files/run/docgenerator.scala +++ b/test/files/run/docgenerator.scala @@ -51,25 +51,25 @@ object Test { val code =""" package annots -@deprecated +@deprecated("msg") object Foo { val x = 0 } -@deprecated +@deprecated("msg") class Bar { val x = 1 } object Foo1 { - @deprecated + @deprecated("msg") object Foo11 { val x = 3 } } class Bar1 { - @deprecated + @deprecated("msg") object Foo11 { val x = 2 } } class Bar2 { def bar { - @deprecated + @deprecated("msg") object Foo21 { val x = 4 } () } @@ -77,7 +77,7 @@ class Bar2 { object Foo2 { def foo { - @deprecated + @deprecated("msg") object Foo21 { val x = 5 } () } diff --git a/test/files/run/t1500.scala b/test/files/run/t1500.scala index a2f4192130..58adea221c 100644 --- a/test/files/run/t1500.scala +++ b/test/files/run/t1500.scala @@ -29,7 +29,7 @@ object Test { /** Check annotations to decide whether tpe1 <:< tpe2 */ def annotationsConform(tpe1: Type, tpe2: Type): Boolean = { - tpe1.attributes.forall(a1 => tpe2.attributes.forall(a2 => a1.atp <:< a2.atp)) + tpe1.annotations.forall(a1 => tpe2.annotations.forall(a2 => a1.atp <:< a2.atp)) } } diff --git a/test/files/run/t1501.scala b/test/files/run/t1501.scala index 07190a3b2c..2a29a6c5a5 100644 --- a/test/files/run/t1501.scala +++ b/test/files/run/t1501.scala @@ -40,7 +40,7 @@ object Test { /** Check annotations to decide whether tpe1 <:< tpe2 */ def annotationsConform(tpe1: Type, tpe2: Type): Boolean = { - tpe1.attributes.forall(a1 => tpe2.attributes.forall(a2 => a1.atp <:< a2.atp)) + tpe1.annotations.forall(a1 => tpe2.annotations.forall(a2 => a1.atp <:< a2.atp)) } } |