framework/tests/compound-checker/MultiError.java
raw| 1 | import org.checkerframework.common.aliasing.qual.Unique; |
| 2 | import org.checkerframework.common.value.qual.StringVal; |
| 3 | |
| 4 | public class MultiError { |
| 5 | // Testing that errors from multiple checkers are issued |
| 6 | // on the same compilation unit |
| 7 | // :: error: (unique.location.forbidden) |
| 8 | @Unique String[] array; |
| 9 | // :: error: (assignment.type.incompatible) |
| 10 | @StringVal("hello") String s = "goodbye"; |
| 11 | } |