Closed kfhoech closed 4 years ago
The key omission in the type inference appears to be in com.rockwellcollins.atc.agree.AgreeTypeSystem at approximately line 260ff. There the type inference looks for extensions of the family of types that map to the AGREE int type and for extensions of the family of types that map to the AGREE real type. There is no consideration of types that map to the AGREE bool type.
Additionally, means of looking whether the name of the extension contains certain strings is not considering the actual AADL type extended, but merely a heuristic. This is likely to be the source of future bug and it should be fixed too. Consider opening another Issue report for this...
Fixed by #18.
Given the following package:
The AGREE type inference reports an apparently incorrect "error" type for references to port1 with the error message "named thing must be an expression with a type."
Examination of the relevant code for type inference of type descending from the AADL data type Base_Types::Boolean shows that type extensions for Boolean are not considered whereas extensions for Integer and Real are considered.