My component has 2 input and 1 output port:
in1 of type int-array[ 5 ]
in2 of type int
out1 of type int
out1 = in1[ 0 ] + in2;
results in an error "Type mismatch in code specification of component Adder".
See attached *.af3_20 project
#4 Updated by Anonymous almost 8 years ago
- Tracker changed from Bug to Feature
- Assignee changed from Anonymous to Anonymous
- % Done changed from 70 to 30
Currently, code specification editor only checks the grammar of the input. No type checking is performed. In order to check mismatched type access like "(int)output = (MyArray)input" or invalid dimension access, a systematical type checking mechanism with detailed violation reports is required. I think it is more as a feature than a bug. Shall we implement this feature?