aboutsummaryrefslogtreecommitdiff
path: root/tests/untried/neg/t6558b.scala
diff options
context:
space:
mode:
Diffstat (limited to 'tests/untried/neg/t6558b.scala')
-rw-r--r--tests/untried/neg/t6558b.scala15
1 files changed, 15 insertions, 0 deletions
diff --git a/tests/untried/neg/t6558b.scala b/tests/untried/neg/t6558b.scala
new file mode 100644
index 000000000..2aa06f69c
--- /dev/null
+++ b/tests/untried/neg/t6558b.scala
@@ -0,0 +1,15 @@
+class AnnotNotFound {
+ def foo(a: Any) = ()
+
+ foo {
+ @inargument
+ def foo = 0
+ foo
+ }
+
+ () => {
+ @infunction
+ def foo = 0
+ ()
+ }
+}