Changeset 91c7501 in OpenModelica
- Timestamp:
- 2021-04-09T15:10:21+02:00 (3 years ago)
- Branches:
- Added-citation-metadata, maintenance/v1.18, maintenance/v1.19, maintenance/v1.20, maintenance/v1.21, maintenance/v1.22, master, omlib-staging
- Children:
- 1af91635, 20df562, 2c24cae, a76d932, c1fcc34, eb2fc178
- Parents:
- 4260065
- git-author:
- perost <perost86@…> (04/09/21 15:10:21)
- git-committer:
- GitHub <noreply@…> (04/09/21 15:10:21)
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
OMCompiler/Compiler/NFFrontEnd/NFInst.mo
r4260065 r91c7501 2834 2834 algorithm 2835 2835 // Class with inherited external section that also contains other sections. 2836 Error.add SourceMessage(Error.MULTIPLE_SECTIONS_IN_FUNCTION,2837 {InstNode.name(scope)}, InstNode.info(scope));2836 Error.addMultiSourceMessage(Error.MULTIPLE_SECTIONS_IN_FUNCTION, 2837 {InstNode.name(scope)}, {sections.info, InstNode.info(scope)}); 2838 2838 then 2839 2839 fail(); … … 2892 2892 end if; 2893 2893 then 2894 Sections.EXTERNAL(name, args, ret_cref, lang, extDecl.annotation_, isSome(extDecl.funcName) );2894 Sections.EXTERNAL(name, args, ret_cref, lang, extDecl.annotation_, isSome(extDecl.funcName), info); 2895 2895 2896 2896 end match; -
OMCompiler/Compiler/NFFrontEnd/NFSections.mo
reba51605 r91c7501 58 58 Option<Annotation> ann; 59 59 Boolean explicit; 60 SourceInfo info; 60 61 end EXTERNAL; 61 62 -
testsuite/flattening/modelica/scodeinst/ExtendInherited1.mo
r83ebb9b r91c7501 1 // name: Extend sInherited11 // name: ExtendInherited1 2 2 // keywords: 3 3 // status: incorrect … … 13 13 end A; 14 14 15 model Extend sInherited115 model ExtendInherited1 16 16 extends A; 17 end Extend sInherited1;17 end ExtendInherited1; 18 18 19 19 // Result: -
testsuite/flattening/modelica/scodeinst/ExternalFunctionInvalidSection1.mo
r83ebb9b r91c7501 26 26 // Result: 27 27 // Error processing file: ExternalFunctionInvalidSection1.mo 28 // [flattening/modelica/scodeinst/ExternalFunctionInvalidSection1.mo:15:3-15:12:writable] Notification: From here: 28 29 // [flattening/modelica/scodeinst/ExternalFunctionInvalidSection1.mo:14:1-18:7:writable] Error: Function f2 has more than one algorithm section or external declaration. 29 30 // -
testsuite/flattening/modelica/scodeinst/FunctionSections4.mo
r0953e25 r91c7501 23 23 // Result: 24 24 // Error processing file: FunctionSections4.mo 25 // [flattening/modelica/scodeinst/FunctionSections4.mo:15:3-15:17:writable] Notification: From here: 25 26 // [flattening/modelica/scodeinst/FunctionSections4.mo:14:1-17:6:writable] Error: Function f has more than one algorithm section or external declaration. 26 27 //
Note: See TracChangeset
for help on using the changeset viewer.