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

Key: IDEA-13451
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)

Wrong parameter type inspection

Created: 26 Jun 07 18:37   Updated: 26 Jun 07 18:54
Component/s: Code Analysis. Inspection

Environment: Bindows

Build: 7,027


 Description  « Hide
Code Sample
function MyClass() {
	if (_biInPrototype) return;
	BiComponent.call(this);
    var x = new BiComboBox();

    this.setMyVar("hello");     // Should warn not to put in String when BiLabel is needed
    this._myVar = 12345;      // Should warn not to put in Number when BiLabel is needed
    this.setMyVar(x);              // Should warn not to put in BiComboBox when BiLabel is needed

}
_p = _biExtend(MyClass, BiComponent, "MyClass");

/**
  * Property description. IDEA already knows it is a BiLabel thanks to the following line
  * @type	BiLabel
  */
MyClass.addProperty("myVar", Function.READ_WRITE);


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