/*****************************************************************
 ** @author  TTF T003
 ** @version 0.0.1
 ** @purpose 5.1.1.12, Ensure that nested classes constructor can not be invoked without an instance of the containing class.
 ** @verdict pass reject
*****************************************************************/
module NegSem_5010112_ConstructorInvocation_001 language "TTCN-3:2018 Object-Oriented" {

    type component GeneralComp {
    }

    type class Parent {

		type class Child {
			//empty class
		}
    }

    testcase TC_NegSem_5010112_ConstructorInvocation_001 () runs on GeneralComp {
    	var Parent.Child v_child := Child.create(); //not allowed

    	//empty test
        setverdict(pass);
    }

    control {
        execute(TC_NegSem_5010112_ConstructorInvocation_001());
    }
}