Opened 7 years ago
Closed 7 years ago
#4664 closed defect (fixed)
max() does not return the correct type in NF
Reported by: | Francesco Casella | Owned by: | Mahder Alemseged Gebremedhin |
---|---|---|---|
Priority: | high | Milestone: | 2.0.0 |
Component: | New Instantiation | Version: | |
Keywords: | Cc: |
Description
The following error is reported:
[/var/lib/hudson/slave/workspace/OpenModelica_TEST_LIBS /OpenModelica/OMCompiler/build/lib/omlibrary /Modelica 3.2.2/Blocks/Continuous.mo:1183:5-1183:61:writable] Error: Type mismatch for positional argument 1 in zeros(=max(0, (Hw.na - Hw.nb))). The argument has type: <ScalarBasicType> expected type: Integer
Why is max(Integer, Integer) returning <ScalarBasicType> and not <Integer>?
Change History (2)
comment:1 by , 7 years ago
Component: | *unknown* → New Instantiation |
---|---|
Milestone: | Future → 2.0.0 |
Owner: | changed from | to
Status: | new → assigned |
comment:2 by , 7 years ago
Resolution: | → fixed |
---|---|
Status: | assigned → closed |
Note:
See TracTickets
for help on using tickets.
Fixed in aa363fe. The model now fails due to #4663.