File tree Expand file tree Collapse file tree 5 files changed +17
-52
lines changed
OMCompiler/Compiler/NFFrontEnd
testsuite/flattening/modelica/scodeinst Expand file tree Collapse file tree 5 files changed +17
-52
lines changed Original file line number Diff line number Diff line change @@ -2011,13 +2011,6 @@ algorithm
20112011
20122012 case ComponentRef . CREF (node = InstNode . COMPONENT_NODE ())
20132013 algorithm
2014- if Component . hasCondition(InstNode . component(cref. node)) and
2015- not Config . languageStandardAtLeast(Config . LanguageStandard . experimental) and
2016- (not InstContext . inConnect(context) or InstContext . inSubscript(context)) and not InstContext . inRelaxed(context) then
2017- Error . addStrictMessage(Error . CONDITIONAL_COMPONENT_INVALID_CONTEXT ,
2018- {InstNode . name(cref. node)}, info);
2019- end if ;
2020-
20212014 // The context used when typing a component node depends on where the
20222015 // component was declared, not where it's used. This can be different to
20232016 // the given context, e.g. for package constants used in a function.
Original file line number Diff line number Diff line change 1+ // name: Condition10
2+ // keywords:
3+ // status: correct
4+ //
5+
6+ model Condition10
7+ Real x if true ;
8+ Real y = x;
9+ end Condition10;
10+
11+ // Result:
12+ // class Condition10
13+ // Real x;
14+ // Real y = x;
15+ // end Condition10;
16+ // endResult
Load Diff This file was deleted.
Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -280,11 +280,10 @@ Condition6.mo \
280280Condition7.mo \
281281Condition8.mo \
282282Condition9.mo \
283+ Condition10.mo \
283284ConditionInvalid1.mo \
284285ConditionInvalidBinding1.mo \
285286ConditionInvalidBinding2.mo \
286- ConditionInvalidContext1.mo \
287- ConditionInvalidContext2.mo \
288287ConditionInvalidType1.mo \
289288conn9.mo \
290289conngraph1.mo \
You can’t perform that action at this time.
0 commit comments