flex-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Carlos Rovira (JIRA)" <j...@apache.org>
Subject [jira] [Created] (FLEX-35245) toString method is already in place for a new object
Date Sat, 14 Jan 2017 15:27:26 GMT
Carlos Rovira created FLEX-35245:
------------------------------------

             Summary: toString method is already in place for a new object
                 Key: FLEX-35245
                 URL: https://issues.apache.org/jira/browse/FLEX-35245
             Project: Apache Flex
          Issue Type: Bug
          Components: FlexJS
    Affects Versions: Apache FlexJS 0.8.0
         Environment: macOS Sierra
            Reporter: Carlos Rovira


If you create a class and try to attach a method toString with some vars, compiler said:

Incorrect number of arguments.  Expected no more than 0
           var str:String = ObjectUtil.toString(value);

This is because FlexJS think the new class has already a toString() method, but that's not
true since the class does not extend anything



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message