ModelingValueGroup / dclareForMPS

Adding declarative, reactive and incremental rules to MPS

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

meth's on Structs do not seem to compile

tombrus opened this issue · comments

I get the following compile error at building:

incompatible types: org.modelingvalue.dclare.mps.SStructClass cannot be converted to org.modelingvalue.dclare.mps.SStructObject (/Users/tom/projects/mvg-dc/cdm/languages/cdm.lang/source_gen/cdm/lang/rules/ModelS_GENERATOR.java:357)

the generated code is:

    @Override
    public List call(Object[] args) {
      return resolveAll_2((SStructClass) args[0], (List) args[1]);
    }
....
    private static List<SModel> resolveAll_2(final SStructObject context, List<SModelReference> ptrs) {
        return ....
    }

which obviously is not correct.

version: develop branch

commented

I think this has been resolved

indeed resolved