Search in sources :

Example 6 with P1

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);
}
Also used : P1(pack1.P1)

Aggregations

P1 (pack1.P1)4 P1 (org.eclipse.xtext.testlanguages.actionLang3.P1)2 EPackage (org.eclipse.emf.ecore.EPackage)1 ENotificationImpl (org.eclipse.emf.ecore.impl.ENotificationImpl)1 Action (org.eclipse.xtext.Action)1 Parameter (org.eclipse.xtext.Parameter)1 ParserRule (org.eclipse.xtext.ParserRule)1 Entry (org.eclipse.xtext.testlanguages.actionLang3.Entry)1 P2 (org.eclipse.xtext.testlanguages.actionLang3.P2)1 P3 (org.eclipse.xtext.testlanguages.actionLang3.P3)1