/*****************************************************************
 ** @author  TTF T003
 ** @version 0.0.1
 ** @purpose 5.1.1.9, Ensure that method invocation with "super" keyword can be used.
 ** @verdict pass accept
*****************************************************************/
module Sem_5010109_MethodInvocation_002 language "TTCN-3:2018 Object-Oriented" {

    type component GeneralComp {
    }

	type class MySuperClass {
        var hexstring v_h;

        public function f_super_hex() return bitstring {
            return hex2bit(this.v_h);
        }
    }

    type class MySubClass extends MySuperClass {

        public function f_hex() return bitstring {
            return super.f_super_hex();
        }
    }

    testcase TC_Sem_5010109_MethodInvocation_002() runs on GeneralComp {
        var MySubClass v_sub := MySubClass.create('FA1'H);
        if (v_sub.f_hex() == '111110100001'B) {
            setverdict(pass);
        } else {
            setverdict(fail);
        }
    }

    control {
        execute(TC_Sem_5010109_MethodInvocation_002());
    }
}