mirror of
https://github.com/github/codeql.git
synced 2025-12-17 09:13:20 +01:00
19 lines
491 B
Java
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
|