Opened 7 years ago
Closed 7 years ago
#4914 closed defect (fixed)
Type error with cardinality() in NF
Reported by: | Francesco Casella | Owned by: | Per Östlund |
---|---|---|---|
Priority: | high | Milestone: | 2.0.0 |
Component: | New Instantiation | Version: | |
Keywords: | Cc: |
Description
Please check Modelica.StateGraph.Examples.ControlledTanks.err. The following error is reported:
[Modelica 3.2.2/StateGraph.mo:2006:5-2007:87:writable] Error: Type mismatch for positional argument 1 in cardinality(c=tankController.s1.inPort[i]). The argument has type: Step_in expected type: Real
Note:
See TracTickets
for help on using tickets.
Fixed in bcde7bc9. cardinality is still not evaluated by the connection handling though, so any models using it will likely not work since the backend doesn't know what to do with it. This particular model now fails due to another frontend issue though, likely due to a known issue with for loop iterators that I will fix next week.