Titan does not know the alternative notation of the control function
Summary
According to Section 8.3 of the TTCN-3 standard control
is identical to function control()
and also control can have parameters this way and can be called explicitly from another control part with or without parameters
Steps and/or TTCN-3 code to reproduce
In one module:
import from modules2 all;
import from modules5 all;
control{
modules2.control; //../src/modules.ttcn:217.12-18: error: syntax error
modules5.control(3); //../src/modules.ttcn:218.12-18: error: syntax error
}
In modules2:
control{
var integer myvar := 2;
}
In modules5:
module modules5 {
function control(integer i) return integer{ //../src/modules5.ttcn:3.10-16: error: at or before token `control': syntax error
var integer myvar := i;
return myvar;
}
}
What is the current bug behavior?
Errors, see in comments
What is the expected correct behavior?
These whould all work.
Relevant logs and/or screenshots
Possible fixes
Titan version
8.1.0
Platform details (OS type and version)
Microsoft Windows 10 Enterprise 10.0.19042
/cc @aknappqwt @mmagyari