Community
Participate
Working Groups
Right now InferEngine#visit(IReturnStatement) checks if the return statement inferred type is == to the existing inferred return type of the current method. If it is not then it assumes (except for the JSdoc case) that the method has different return types and thus should have the "any" return type. Problem with this is in the case of multiple implementations of the InferEngine class for the well known types there will be different instances of the same inferred type, in this case we want to continue to use the inferred type and not set it to ANY
Created attachment 185098 [details] Fix Patch Fixes issue with new logic. Logic is a bit confusing but I attempted to doc it very well. All existing junits pass.
Checked into HEAD and 3.2.3