blob: eb8776fa3e5b0cfaec8b652933fa2a6fc291cd39 [file] [log] [blame]
public class JavaErrorTest {
// Checking that if one checker finds a Java error
// and therefor does not set a root, then
// checkers relying on that checker should also not run.
// otherwise, it might access a subchecker whose "root" has not been set.
// (See AnnotatedTypeFactory.setRoot(CompilationUnitTree) )
void foo() {
Object a;
// :: error: variable a is already defined in method foo()
Object a;
}
}