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 2018/11/09 23:57:32 UTC

[GitHub] aharui commented on issue #57: Dependency error when extending class and implementing interface from "external" SWC library

aharui commented on issue #57: Dependency error when extending class and implementing interface from "external" SWC library
URL: https://github.com/apache/royale-compiler/issues/57#issuecomment-437532076
 
 
   Interesting.  The interface shouldn't be in the requires list.  But after we fix that, there will be other warnings because Google Closure Compiler cannot find the base class and interface which are referenced by some of the code.  A typedefs/externs file is required for that, and I don't think you can use the .js files for the external class and interface as the typedef/extern.  So that means, unlike a SWF class, which can be used as the external or linked definitions, the .js class cannot.  It would be rather heavy to generate a sister typedef file for every .js file since most classes probably won't be used as external dependencies.  Maybe in the future we can teach the compiler to autogenerate a typedef/extern on the fly if it sees that there are external references that have .js files that aren't externs.  But that could be slow.

----------------------------------------------------------------
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