cloudsmith/geppetto — Issue #206: single char class name and inheritance results in things not being found
Author: hlindberg
Created: 2011-10-15 14:19:01+00:00
State: open

While working on indexing of variables, I found that the following test failed. Changing a to aa and b to bb solved the issue. Probably an off-by-one error related to variable search.

/**
* An unqualified reference to an inherited variable should produce no errors or warnings.
*
* @throws Exception
*/
public void test_variable_Lx_IVx() throws Exception {
String code = "class a {\n" + //
"$x = 10\n" + //
"class b inherits a {\n" + //
"$ref = $x\n" + //
"}\n" + //
"}\n"; //
;
Resource r = loadAndLinkSingleResource(code);
tester.validate(r.getContents().get(0)).assertOK();
resourceWarningDiagnostics(r).assertOK();
resourceErrorDiagnostics(r).assertOK();
}