Changeset ac9546c5 in OpenModelica


Ignore:
Timestamp:
2021-06-08T12:14:02+02:00 (3 years ago)
Author:
Per Östlund <perost86@…>
Parents:
97583e7
Message:

Relax type attribute variability check

File:
1 edited

Legend:

Unmodified
Added
Removed
  • OMCompiler/Compiler/NFFrontEnd/NFTyping.mo

    r0ff0f74b rac9546c5  
    11021102          // Check the variability. All builtin attributes have parameter variability,
    11031103          // unless we're in a function in which case we don't care.
    1104           if Binding.variability(binding) > Variability.PARAMETER and not InstContext.inFunction(context) then
     1104          if Binding.variability(binding) >= Variability.DISCRETE and not InstContext.inFunction(context) then
    11051105            Error.addSourceMessage(Error.HIGHER_VARIABILITY_BINDING,
    11061106              {name, Prefixes.variabilityString(Variability.PARAMETER),
Note: See TracChangeset for help on using the changeset viewer.