-
Notifications
You must be signed in to change notification settings - Fork 21
Open
Labels
bug: minorSomething isn't workingSomething isn't workingcomponent: parserAffects the parserAffects the parserdifficulty: highThis change will be tricky or largeThis change will be tricky or large
Description
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).
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bug: minorSomething isn't workingSomething isn't workingcomponent: parserAffects the parserAffects the parserdifficulty: highThis change will be tricky or largeThis change will be tricky or large