Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 351353 - [validation] Type mismatch with anonymous types
Summary: [validation] Type mismatch with anonymous types
Status: RESOLVED WORKSFORME
Alias: None
Product: JSDT
Classification: WebTools
Component: General (show other bugs)
Version: unspecified   Edit
Hardware: PC Linux
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact: Chris Jaun CLA
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-07-06 12:16 EDT by Klaus Reimer CLA
Modified: 2013-07-02 13:04 EDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.