Skip to content

Commit c24400f

Browse files
committed
SI-6558 Expand test case for annotation typos
1 parent d9928d5 commit c24400f

File tree

2 files changed

+26
-5
lines changed

2 files changed

+26
-5
lines changed

test/files/neg/t6558.check

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,10 @@
1-
t6558.scala:5: error: not found: type sth
2-
@sth
3-
^
4-
one error found
1+
t6558.scala:16: error: not found: type classs
2+
@classs
3+
^
4+
t6558.scala:19: error: not found: type typeparam
5+
class D[@typeparam T]
6+
^
7+
t6558.scala:22: error: not found: type valueparam
8+
@valueparam x: Any
9+
^
10+
three errors found

test/files/neg/t6558.scala

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,23 @@ class AnnotNotFound {
22
def foo(a: Any) = ()
33

44
foo {
5-
@sth
5+
@inargument
66
def foo = 0
77
foo
88
}
9+
10+
() => {
11+
@infunction
12+
def foo = 0
13+
()
14+
}
15+
16+
@classs
17+
class C
18+
19+
class D[@typeparam T]
20+
21+
class E(
22+
@valueparam x: Any
23+
)
924
}

0 commit comments

Comments
 (0)