Skip to content

Commit

Permalink
Fix return value of qualifyPath() (#10625)
Browse files Browse the repository at this point in the history
- Return a TypeName from qualifyPath() like it's declared to do.
  • Loading branch information
perost committed Apr 27, 2023
1 parent fbd0376 commit 26b9177
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion OMCompiler/Compiler/Script/CevalScriptBackend.mo
Expand Up @@ -3112,7 +3112,7 @@ algorithm
then Values.BOOL(SymbolTable.restoreAST(n));
case ("qualifyPath", {Values.CODE(Absyn.C_TYPENAME(classpath)), Values.CODE(Absyn.C_TYPENAME(path))})
then Values.STRING(AbsynUtil.pathString(NFApi.mkFullyQual(SymbolTable.getAbsyn(), classpath, path)));
then ValuesUtil.makeCodeTypeName(NFApi.mkFullyQual(SymbolTable.getAbsyn(), classpath, path));
end matchcontinue;
end cevalInteractiveFunctions4;
Expand Down
2 changes: 1 addition & 1 deletion testsuite/openmodelica/instance-API/QualifyPath1.mos
Expand Up @@ -21,6 +21,6 @@ getErrorString();

// Result:
// true
// "P.A"
// P.A
// ""
// endResult

0 comments on commit 26b9177

Please sign in to comment.