From dev-return-4337-archive-asf-public=cust-asf.ponee.io@royale.apache.org Fri May 4 15:13:22 2018 Return-Path: X-Original-To: archive-asf-public@cust-asf.ponee.io Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by mx-eu-01.ponee.io (Postfix) with SMTP id D92FA180677 for ; Fri, 4 May 2018 15:13:21 +0200 (CEST) Received: (qmail 7441 invoked by uid 500); 4 May 2018 13:13:20 -0000 Mailing-List: contact dev-help@royale.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@royale.apache.org Delivered-To: mailing list dev@royale.apache.org Received: (qmail 7416 invoked by uid 99); 4 May 2018 13:13:19 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd3-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 04 May 2018 13:13:19 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd3-us-west.apache.org (ASF Mail Server at spamd3-us-west.apache.org) with ESMTP id 771121807EC for ; Fri, 4 May 2018 13:13:19 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd3-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -0.001 X-Spam-Level: X-Spam-Status: No, score=-0.001 tagged_above=-999 required=6.31 tests=[RCVD_IN_DNSWL_NONE=-0.0001, SPF_PASS=-0.001] autolearn=disabled Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd3-us-west.apache.org [10.40.0.10]) (amavisd-new, port 10024) with ESMTP id OImNuFqhwY5z for ; Fri, 4 May 2018 13:13:18 +0000 (UTC) Received: from server.linux74.papaki.gr (server.linux74.papaki.gr [88.99.254.37]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with ESMTPS id 9BA315F3FF for ; Fri, 4 May 2018 13:13:17 +0000 (UTC) Received: from DESKTOPSMF5AAU (ppp-2-87-147-112.home.otenet.gr [2.87.147.112]) by server.linux74.papaki.gr (Postfix) with ESMTPSA id 15F5818E86CD for ; Fri, 4 May 2018 16:13:17 +0300 (EEST) Authentication-Results: server.linux74.papaki.gr; spf=pass (sender IP is 2.87.147.112) smtp.mailfrom=aggelopoulos@novusnet.eu smtp.helo=DESKTOPSMF5AAU Received-SPF: pass (server.linux74.papaki.gr: connection is authenticated) From: "Spiros Aggelopoulos" To: Subject: Compiler error using static function toString Date: Fri, 4 May 2018 16:13:15 +0300 Message-ID: <001a01d3e3a9$aa3b7d80$feb27880$@eu> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Mailer: Microsoft Office Outlook 12.0 Thread-Index: AdPjqamQ0OSxpSN3QViIGCS1NxjAtg== Content-Language: el X-PPP-Message-ID: <20180504131317.5840.40389@server.linux74.papaki.gr> X-PPP-Vhost: novusnet.eu Hi , there is a compiler error on the code bellow, is any reason to avoid this type of code? Or it is a bug ? 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"); } } } Thanks , Spiros