Interesting, never tried. I think that's clearly a bug. Only public members
should be allowed.
private or protected should throw error

El mar., 14 ene. 2020 a las 0:04, Harbs (<harbs.li...@gmail.com>) escribió:

> <js:Application xmlns:fx="http://ns.adobe.com/mxml/2009";
>                    xmlns:js="library://ns.apache.org/royale/basic" >
>     <js:valuesImpl>
>         <js:SimpleCSSValuesImpl lastIndex="10"/>
>     </js:valuesImpl>
>     <js:initialView>
>         <js:View>
>                 <js:Label text="Hello World!" _width="10" />
>         </js:View>
>     </js:initialView>
> </js:Application>
>
> There’s two private vars there: “lastIndex", and “_width".
>
> This compiles with no warnings or errors.
>
> > On Jan 14, 2020, at 12:56 AM, Josh Tynjala <joshtynj...@bowlerhat.dev>
> wrote:
> >
> > Do you have some example code?
> >
> > --
> > Josh Tynjala
> > Bowler Hat LLC <https://bowlerhat.dev>
> >
> >
> > On Mon, Jan 13, 2020 at 2:21 PM Harbs <harbs.li...@gmail.com> wrote:
> >
> >> I just noticed that there’s no compiler error while specifying private
> var
> >> values in MXML.
> >>
> >> It looks like it’s compiled “correctly” too.
> >>
> >> I assume this is a bug?
> >>
> >> Harbs
>
>

-- 
Carlos Rovira
http://about.me/carlosrovira

Reply via email to