History | Log In     View a printable version of the current page.  
Issue Details (XML | Word | Printable)

Key: IDEA-13458
Type: Sub-task Sub-task
Status: Open Open
Assignee: Maxim Mossienko
Reporter: Johan Lund
Votes: 0
Watchers: 1
Operations

If you were logged in you would be able to see more operations.
IDEA: Feedback
Bindows specific inspections (IDEA-13447)

Redeclaration

Created: 26 Jun 07 19:13   Updated: 26 Jun 07 23:24
Component/s: Code Analysis. Inspection

Environment: Bindows

Build: 7,027


 Description  « Hide
When I am reassigning a variable with the a different type an inspection error should be raised.
Code Sample
function MyClass() {
    if (_biInPrototype) return;
    BiComponent.call(this);

    var x = new BiComboBox();
    x = new BiLabel();              // Should complain here about redeclaration

    this._y = new BiComboBox();
}
_p = _biExtend(MyClass, BiComponent, "MyClass");

_p.someMethod = function() {
    this._y = new BiLabel();        // should complain here about redeclaration
};


 All   Comments   Work Log   Change History      Sort Order:
There are no comments yet on this issue.