summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/files/neg/t6558.check4
-rw-r--r--test/files/neg/t6558.scala9
2 files changed, 13 insertions, 0 deletions
diff --git a/test/files/neg/t6558.check b/test/files/neg/t6558.check
new file mode 100644
index 0000000000..bd118edec8
--- /dev/null
+++ b/test/files/neg/t6558.check
@@ -0,0 +1,4 @@
+t6558.scala:5: error: not found: type sth
+ @sth
+ ^
+one error found
diff --git a/test/files/neg/t6558.scala b/test/files/neg/t6558.scala
new file mode 100644
index 0000000000..92c788f21e
--- /dev/null
+++ b/test/files/neg/t6558.scala
@@ -0,0 +1,9 @@
+class AnnotNotFound {
+ def foo(a: Any) = ()
+
+ foo {
+ @sth
+ def foo = 0
+ foo
+ }
+}