summaryrefslogtreecommitdiff
path: root/test/files/neg/t6558.scala
diff options
context:
space:
mode:
Diffstat (limited to 'test/files/neg/t6558.scala')
-rw-r--r--test/files/neg/t6558.scala27
1 files changed, 27 insertions, 0 deletions
diff --git a/test/files/neg/t6558.scala b/test/files/neg/t6558.scala
new file mode 100644
index 0000000000..bdc441698f
--- /dev/null
+++ b/test/files/neg/t6558.scala
@@ -0,0 +1,27 @@
+class AnnotNotFound {
+ def foo(a: Any) = ()
+
+ foo {
+ // Not yet issued in the context of this file, see SI-6758
+ // This error is issued in t6558b.scala
+ @inargument
+ def foo = 0
+ foo
+ }
+
+ () => {
+ // As per above
+ @infunction
+ def foo = 0
+ ()
+ }
+
+ @classs
+ class C
+
+ class D[@typeparam T]
+
+ class E(
+ @valueparam x: Any
+ )
+}