/*****************************************************************
 ** @author  STF 572
 ** @version 0.0.1
 ** @purpose 5.1.1.9, Ensure that private members can only be accessed directly from inside their surrounding class's scope.
 ** @verdict pass reject
*****************************************************************/
module NegSem_5010110_Visibility_004 "TTCN-3:2018 Object-Oriented" {

    type component GeneralComp {
    }

    type class MyClass {
        private var integer v_i;
    }

    testcase TC_NegSem_5010110_Visibility_004() runs on GeneralComp {
        var MyClass v_a := MyClass.create(1);
        if (v_a.v_i == 1) { //not allowed
            setverdict(pass);
        } else {
            setverdict(fail);
        }
    }

    control {
        execute(TC_NegSem_5010110_Visibility_004());
    }
}