summaryrefslogtreecommitdiff
path: root/test/files/neg/annot-nonconst.scala
diff options
context:
space:
mode:
Diffstat (limited to 'test/files/neg/annot-nonconst.scala')
-rw-r--r--test/files/neg/annot-nonconst.scala6
1 files changed, 6 insertions, 0 deletions
diff --git a/test/files/neg/annot-nonconst.scala b/test/files/neg/annot-nonconst.scala
new file mode 100644
index 0000000000..5a0b72aca2
--- /dev/null
+++ b/test/files/neg/annot-nonconst.scala
@@ -0,0 +1,6 @@
+class Length(n: Int) extends ClassfileAnnotation
+
+object Test {
+ def n = 15
+ @Length(n) def foo = "foo"
+}