use of org.eclipse.xtext.testlanguages.actionLang3.P1 in project ceylon-compiler by ceylon.
the class CMain method test.
void test() {
P1 p1 = new P1();
// These are NOT errors, and should NOT be detected, as observed.
/*------------------------------------*
Baz.Quux z = null;
Baz.Quux.Quem y = null;
*------------------------------------*/
// ERROR - 'P1.Foo' not accessible
P1.Foo.Bar x = null;
// ERROR - Type of 'a' not accessible
int i = p1.a.length;
// The type of the expression from which a component
// is selected must be accessible.
// ERROR - Type of 'p1.p2' not accessible.
p1.p2.privatei = 3;
// ERROR - Type of 'p1.p2' not accessible.
System.out.println(p1.p2.privatei);
}
Aggregations