You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@royale.apache.org by GitBox <gi...@apache.org> on 2019/11/26 17:04:15 UTC

[GitHub] [royale-compiler] joshtynjala commented on issue #96: No error on wrong MXML value type

joshtynjala commented on issue #96: No error on wrong MXML value type
URL: https://github.com/apache/royale-compiler/issues/96#issuecomment-558725808
 
 
   Here is some Royale code that should result in a compiler error, but does not:
   
   ```mxml
   <js:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
   	xmlns:js="library://ns.apache.org/royale/basic" xmlns:svg="library://ns.apache.org/royale/svg">
   	<js:initialView>
   		<js:View>
   			<svg:Rect height="50" width="50" fill="0xff0000"/>
   		</js:View>
   	</js:initialView>
   </js:Application>
   ```
   
   A similar app created with Flex might look like this:
   
   ```mxml
   <s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
   	xmlns:s="library://ns.adobe.com/flex/spark">
   	<s:Rect height="50" width="50" fill="0xff0000"/>
   </s:Application>
   ```
   
   Attempting to compile this code with the Flex SDK produces the following compiler error:
   
   > Error: Initializer for 'fill': values of type mx.graphics.IFill cannot be represented in text.

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services