Browse files

Split test case to workaround incomplete error report.

Reporting some errors prevents reporting others. This
residual issue had been lodged as SI-6758.
  • Loading branch information...
1 parent c24400f commit 673bc700fc32fa18941554533dfd31bf2523d45e @retronym retronym committed Dec 3, 2012
Showing with 28 additions and 3 deletions.
  1. +3 −3 test/files/neg/t6558.check
  2. +3 −0 test/files/neg/t6558.scala
  3. +7 −0 test/files/neg/t6558b.check
  4. +15 −0 test/files/neg/t6558b.scala
View
6 test/files/neg/t6558.check
@@ -1,10 +1,10 @@
-t6558.scala:16: error: not found: type classs
+t6558.scala:19: error: not found: type classs
@classs
^
-t6558.scala:19: error: not found: type typeparam
+t6558.scala:22: error: not found: type typeparam
class D[@typeparam T]
^
-t6558.scala:22: error: not found: type valueparam
+t6558.scala:25: error: not found: type valueparam
@valueparam x: Any
^
three errors found
View
3 test/files/neg/t6558.scala
@@ -2,12 +2,15 @@ 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
()
View
7 test/files/neg/t6558b.check
@@ -0,0 +1,7 @@
+t6558b.scala:5: error: not found: type inargument
+ @inargument
+ ^
+t6558b.scala:11: error: not found: type infunction
+ @infunction
+ ^
+two errors found
View
15 test/files/neg/t6558b.scala
@@ -0,0 +1,15 @@
+class AnnotNotFound {
+ def foo(a: Any) = ()
+
+ foo {
+ @inargument
+ def foo = 0
+ foo
+ }
+
+ () => {
+ @infunction
+ def foo = 0
+ ()
+ }
+}

0 comments on commit 673bc70

Please sign in to comment.