Re: [Jastadd] Bug report: multiple equations error msg

From: Jesper Öqvist <jesper.oqvist_at_cs.lth.se>
Date: Wed, 20 Feb 2013 16:42:46 +0100

Hi Jesper,

This is simple to fix. I will fix it ASAP.

Thank you for the bug report.

/Jesper

On 02/20/2013 03:44 PM, Jesper Mattsson wrote:
>
> Hi
>
>
> Compiling the following (as a part of the JModelica.org compiler):
>
> syn java.util.List<FSubscript> InstClassDecl.myFSubscripts() =
> Collections.emptyList();
>
> eq InstSimpleShortClassDecl.myFSubscripts() =
> actualInstClass().myFSubscripts();
>
> eq InstClassDecl.myFSubscripts() =
>
> (getNumInstExtends() == 1) ?
> getInstExtends(0).myInstClass().myFSubscripts() : Collections.emptyList();
>
> Gives me the error message:
>
> MyFile.jrag:1808 Multiple equations for synthesized attribute
> ASTDecl.myFSubscripts, previously defined in MyFile.jrag:1806
>
> The problem is that the error message refers to
> *ASTDecl*.myFSubscriptsinstead of *InstClassDecl*.myFSubscripts.
>
> Jesper
>
> *Jesper MATTSSON, MSc*
>
> Software Developer & IT Administrator
>
> Phone direct: +46 73 324 5909
>
> Email: jesper.mattsson_at_modelon.com <mailto:jesper.mattsson_at_modelon.com>
>
>
> Description: Description: Modelon_2011_Gradient_RGB_400
>
> ------------------------------------------------------------------------
>
> Modelon AB
> Ideon Science Park
> SE-223 70 Lund, Sweden
>
>
>
> Phone: +46 46 286 2200
> Fax: +46 46 286 2201
>
>
>
>
> Web: http://www.modelon.com <http://www.modelon.com/>
>
> This email and any attachments are intended solely for the use of the
> individual or entity to whom it is addressed and may be confidential
> and/or privileged. If you are not one of the named recipients or have
> received this email in error, (i) you should not read, disclose, or
> copy it, (ii) please notify sender of your receipt by reply email and
> delete this email and all attachments, (iii) Modelon does not accept
> or assume any liability or responsibility for any use of or reliance
> on this email.
>
>
> _______________________________________________
> JastAdd mailing list
> JastAdd_at_cs.lth.se
> https://mail1.cs.lth.se/cgi-bin/mailman/listinfo/jastadd
Received on Wed Feb 20 2013 - 16:41:00 CET

This archive was generated by hypermail 2.3.0 : Wed Apr 16 2014 - 17:19:06 CEST