This Bugzilla instance is deprecated, and most Eclipse projects now use GitHub or Eclipse GitLab. Please see the deprecation plan for details.
Bug 402069 - [bug] infix expression not inferred correctly
Summary: [bug] infix expression not inferred correctly
Status: RESOLVED FIXED
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: VJET (show other bugs)
Version: unspecified   Edit
Hardware: PC Mac OS X
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Justin Early CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-02-28 17:53 EST by Justin Early CLA
Modified: 2017-04-11 15:12 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 Justin Early CLA 2013-02-28 17:53:24 EST
Inference of handle should not be boolean

//>boolean? fn(MouseEvent e)
var beginDrag= function(e){
	var t = this,
	handle = e.target || e.srcElement;  // handle is inferred as boolean which is not correct could be either EventTarget or HTMLElement
	
	while (handle !== document.body && handle !== t.bar) {
	handle = handle.parentNode;
	}
}
Comment 1 Justin Early CLA 2013-03-01 11:54:42 EST
Fixed in last night's build. infix expressions will infer to mixed type of both the left and right hand side of double || or operator.