aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorKevin Wright <kevin.wright@bradyplc.com>2018-02-01 14:42:05 +0000
committerKevin Wright <kevin.wright@bradyplc.com>2018-02-01 14:42:05 +0000
commit6660480a75b240b7ac613ed308e5b7f7ddfc6459 (patch)
tree2c85897a2ab4010438538351340f89356a28ad6a /tests
parentbd1ca071286987bc148fda830aa3141f56891efb (diff)
downloadmagnolia-6660480a75b240b7ac613ed308e5b7f7ddfc6459.tar.gz
magnolia-6660480a75b240b7ac613ed308e5b7f7ddfc6459.tar.bz2
magnolia-6660480a75b240b7ac613ed308e5b7f7ddfc6459.zip
Added top-level annotation capture
Diffstat (limited to 'tests')
-rw-r--r--tests/src/main/scala/tests.scala4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/src/main/scala/tests.scala b/tests/src/main/scala/tests.scala
index 0f962d2..9153325 100644
--- a/tests/src/main/scala/tests.scala
+++ b/tests/src/main/scala/tests.scala
@@ -44,7 +44,7 @@ case object Blue extends Color
case class MyAnnotation(order: Int) extends StaticAnnotation
-case class Attributed(
+@MyAnnotation(0) case class Attributed(
@MyAnnotation(1) p1: String,
@MyAnnotation(2) p2: Int
)
@@ -369,7 +369,7 @@ object Tests extends TestApp {
test("capture attributes against params") {
Show.gen[Attributed].show(Attributed("xyz", 100))
- }.assert(_ == "Attributed(p1{MyAnnotation(1)}=xyz,p2{MyAnnotation(2)}=100)")
+ }.assert(_ == "Attributed{MyAnnotation(0)}(p1{MyAnnotation(1)}=xyz,p2{MyAnnotation(2)}=100)")
}
}