default values of keyword parameters are not checked to be in the allowed set
Currently neither the CST nor the runtime code stops a simulation if the default value of a parameter is not in the allowed set of values. The runtime code actually detects this state then outputs an (invisible since the info level is not yet available) warning about which parameter is affected, then another one to the effect of “but continuing anyway”.
It seems better if default values were restricted to be in the allowed range, ideally both at compile time and at runtime (in case compile time checks miss something).
Comments (10)
-
reporter -
reporter Issue
#2593was marked as a duplicate of this issue. -
On looking into this, I see that there are some serious bugs here. Working on a fix.
-
reporter - changed status to open
-
reporter -
assigned issue to
-
assigned issue to
-
-
reporter Has there been progress on this? The PR ends with a comment (by me) saying that keyword parameters are not checked to be in range and show the same issue so the pull request is incomplete. Similarly most likely for strings.
-
reporter Please apply.
-
reporter -
reporter - changed status to resolved
- Log in to comment
To be addressed after ET_2020_05