Repository: flex-falcon
Updated Branches:
  refs/heads/develop e2543e084 -> 5269b49c5


Return type with template should be treated as *

The code "var x:int = [1,2].pop();" should not generate an error "Implicit 
coercion of a value with static type Object to a possibly unrelated type int."

Project: http://git-wip-us.apache.org/repos/asf/flex-falcon/repo
Commit: http://git-wip-us.apache.org/repos/asf/flex-falcon/commit/92bfa13c
Tree: http://git-wip-us.apache.org/repos/asf/flex-falcon/tree/92bfa13c
Diff: http://git-wip-us.apache.org/repos/asf/flex-falcon/diff/92bfa13c

Branch: refs/heads/develop
Commit: 92bfa13c02f49ccc3c964436e15051b6dc2d5181
Parents: fa2f16f
Author: Andy Dufilie <[email protected]>
Authored: Thu Dec 31 22:47:50 2015 -0500
Committer: Andy Dufilie <[email protected]>
Committed: Thu Dec 31 22:47:50 2015 -0500

----------------------------------------------------------------------
 .../compiler/internal/codegen/externals/utils/FunctionUtils.java   | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/flex-falcon/blob/92bfa13c/compiler.jx/src/org/apache/flex/compiler/internal/codegen/externals/utils/FunctionUtils.java
----------------------------------------------------------------------
diff --git 
a/compiler.jx/src/org/apache/flex/compiler/internal/codegen/externals/utils/FunctionUtils.java
 
b/compiler.jx/src/org/apache/flex/compiler/internal/codegen/externals/utils/FunctionUtils.java
index d516b1c..473e42c 100644
--- 
a/compiler.jx/src/org/apache/flex/compiler/internal/codegen/externals/utils/FunctionUtils.java
+++ 
b/compiler.jx/src/org/apache/flex/compiler/internal/codegen/externals/utils/FunctionUtils.java
@@ -63,7 +63,7 @@ public class FunctionUtils
         {
             returnType = JSTypeUtils.toReturnTypeString(reference);
             if (containsTemplate(reference, returnType))
-               returnType = "Object";
+               returnType = "*";
             else if (returnType.equals("RESULT"))
                returnType = "Object";
         }

Reply via email to