Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 351353

Summary: [validation] Type mismatch with anonymous types
Product: [WebTools] JSDT Reporter: Klaus Reimer <k>
Component: GeneralAssignee: Project Inbox <jsdt.javascript-inbox>
Status: RESOLVED WORKSFORME QA Contact: Chris Jaun <cmjaun>
Severity: normal    
Priority: P3    
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Linux   
Whiteboard:

Description Klaus Reimer CLA 2011-07-06 12:16:36 EDT
Build Identifier: I20110613-1736

The second line in this constructor function generates the warning "cannot convert from ___anonymous58_59 to ___anonymous39_40":

    function FooBar()
    {    
        this.foo = {};
        this.foo = {};
    }

I wonder why the type inference thingy generates a dynamic type for each assignment. In my opinion the type should simply be "Object".

Reproducible: Always
Comment 1 Chris Jaun CLA 2013-07-02 13:04:11 EDT
This problem is unreproducible in WTP 3.5.