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/05/07 07:33:07 UTC

[GitHub] saggelopoulos opened a new issue #223: Compiller Error 1137: Calling Static ToString Function from another class

saggelopoulos opened a new issue #223: Compiller Error 1137: Calling Static ToString Function from another class 
URL: https://github.com/apache/royale-asjs/issues/223
 
 
   test case:  
           package org.comp
           {
           	public class ToStringImp
           	{
           		public static function toString(str:String):String
           		{
           			return str;
           		}
           	}
           }
   
           package org.comp
           {
           	import org.apache.royale.events.EventDispatcher;
           	import org.apache.royale.events.IEventDispatcher;
           	public class CompError extends EventDispatcher
           	{
           		public function CompError(target:IEventDispatcher=null)
           		{
           			super(target);
           		}
           		override public function toString():String
           		{
           			//compiler message : 
           			//1137: Incorrect number of arguments.  Expected no more than 0	
           			return ToStringImp.toString("some string value");
           		}
           	}
           }
   
   

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