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/01/17 23:34:57 UTC

[GitHub] Harbs commented on issue #72: compiler omits any class-scoped conditional compilation blocks

Harbs commented on issue #72: compiler omits any class-scoped conditional compilation blocks
URL: https://github.com/apache/royale-compiler/issues/72#issuecomment-455371860
 
 
   Scoped declaration need the config statements attached directly (not sure the correct terminology.
   
   So:
   ````
   CONFIG__DEBUG
   class Main{}
   ````
   should work, but:
   ````
   CONFIG__DEBUG
   {
     class Main{}
   }
   ````
   will not.
   
   Similarly it needs to be:
   ````
   CONFIG::DEBUG
   private var foo;
   CONFIG::DEBUG
   public function baz():void{}
   ````
   rather than:
   
   ````
   CONFIG::DEBUG
   {
     private var foo;
     public function baz():void{}
   }
   ````
   AFAIK, blocks only work within a function.

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on 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