Skip to content

Commit

Permalink
- fix the type source for the enumeration type inside DAE.ElementSour…
Browse files Browse the repository at this point in the history
…ce.typeList (port from rml branch)

git-svn-id: https://openmodelica.org/svn/OpenModelica/trunk@24927 f25d12d1-65f4-0310-ae8a-bbce733d8d8e
  • Loading branch information
adrpo committed Mar 5, 2015
1 parent e19d57d commit 73113bd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Compiler/FrontEnd/Inst.mo
Expand Up @@ -1126,7 +1126,7 @@ algorithm
(cache,fq_class) = makeFullyQualified(cache,env_2, Absyn.IDENT(n));
eqConstraint = InstUtil.equalityConstraint(env_2, els, info);
// DAEUtil.addComponentType(dae1, fq_class);
ty2 = DAE.T_ENUMERATION(NONE(), fq_class, names, tys1, tys, DAE.emptyTypeSource);
ty2 = DAE.T_ENUMERATION(NONE(), fq_class, names, tys1, tys, {fq_class});
bc = arrayBasictypeBaseclass(inst_dims, ty2);
bc = if Util.isSome(bc) then bc else SOME(ty2);
ty = InstUtil.mktype(fq_class, ci_state_1, tys1, bc, eqConstraint, c);
Expand Down

0 comments on commit 73113bd

Please sign in to comment.