check for simulink unsupported property initializations #225
Labels
requires: sem
Change can only be implemented once semantic analysis works
tool: mh_lint
Affects the linter
What kind of feature is this?
Your MATLAB/Octave environment
MISS_HIT component affected
Choose one or more of the below:
Describe the solution you'd like
in classes, properties may be initialized in the properties block itself, e.g.
However, code generation only supports this for assignments that use only build-ins. So custom class constructors / functions won't work, e.g.
This is fine when you don't generate code from is but will cause an error during code generation "Code generation only supports initial values of class type for constant properties". It'd be nice if this was caught by miss_hit early on.
The text was updated successfully, but these errors were encountered: