Files
codeql/java/ql/test/library-tests/errorexpr/Test.java
2024-02-29 14:59:46 +00:00

19 lines
491 B
Java

public class Test {
public int yield(int x) { return x; }
public void secondCall() { }
public int yieldWrapper(int x) {
int ret = yield(x);
secondCall();
return ret;
}
}
// Diagnostic Matches: Erroneous node in tree: (ERROR)
// Diagnostic Matches: In file Test.java:8:15 no end location for JCMethodInvocation : yield(x)
// Diagnostic Matches: 1 errors during annotation processing
// Diagnostic Matches: Unknown or erroneous type for expression of kind ErrorExpr