MISS_HIT Component affected
Please choose one from:
Style checker
Your MATLAB/Octave environment
MATLAB
R2023B
Your operating system and Python version
Linux
python 3.8.10
Describe the bug
The file
function [] = test()
a = 0;
arguments = struct(...
'test', 1.0...
);
end
gives the error
In arguments.m, line 3
| arguments = struct(...
| ^^^^^^^^^ error: expected valid statement, found keyword 'arguments' instead
MISS_HIT Style Summary: 1 file(s) analysed, 1 error(s)
which should not be the case because it is allowed to have variables called arguments as long as the keyword does not appear as the first expression in the function body (a = 0; makes the difference here between invalid Matlab syntax and correct code).
MISS_HIT Component affected Please choose one from:
Your MATLAB/Octave environment
Your operating system and Python version
Describe the bug The file
gives the error
which should not be the case because it is allowed to have variables called
arguments
as long as the keyword does not appear as the first expression in the function body (a = 0;
makes the difference here between invalid Matlab syntax and correct code).