OOP-protected methods may be overridden by public or protected methods only
Submitted by Elemer Lelik
Link to original bug (#568742)
Description
The below code snippet should not compile:
module NegSem_5010107_Methods_002 "TTCN-3:2018 Object-Oriented" {
type component GeneralComp {
}
type class MySuperClass {
var octetstring v_o;
function doSomething() return integer { //protected method
return oct2int(this.v_o);
}
}
type class MySubClass extends MySuperClass {
private function doSomething() return integer { //not allowed error shouls be thrown here
return 1;
}
}
//.... }
Version: 7.1.0