[Laszlo-dev] bug with mixin constructor-generator code?

Donald Anderson dda at ddanderson.com
Wed Mar 12 20:41:31 PDT 2008


Yes, that's a bug - I'll need to strip types on the call.

On Mar 12, 2008, at 7:31 PM, Henry Minsky wrote:

> I have a mixin , LzFormatter, which is mixed in to LzText
>
> class LFCText extends LFCView with LzFormatter {
>
> When I compile, I get this error, which is because the compiler has
> inserted type declarations onto the args in the  generated super()
> call.
>
>     [java] Loading configuration file
> /Users/hqm/openlaszlo/adobe/trunk/frameworks/flex-config.xml
>
>     [java] ERRORS:
>     [java] Compiler error: at
> [/tmp/lzswf9/lzgen31231/$lzsc$mixin$LzFormatter$LFCView.as: 285]:
> Error: Syntax error: expecting rightparen before colon.
>     [java]
>     [java] super(parent:*, attrs:*, children:*, instcall:*)
>     [java]             ^
>
>
>
> The generated constructor looks like
>
> }function $lzsc$mixin$LzFormatter$LFCView (parent:*, attrs:*,
> children:* = null, instcall:* = null) {
> super(parent:*, attrs:*, children:*, instcall:*)
> }}
>
>
>
> -- 
> Henry Minsky
> Software Architect
> hminsky at laszlosystems.com


--

Don Anderson
Java/C/C++, Berkeley DB, systems consultant

voice: 617-547-7881
email: dda at ddanderson.com
www: http://www.ddanderson.com






More information about the Laszlo-dev mailing list