Bug 269000 - Content assist does not work on negative numbers
Summary: Content assist does not work on negative numbers
Status: RESOLVED FIXED
Alias: None
Product: JSDT
Classification: WebTools
Component: General (show other bugs)
Version: 3.1   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: 3.0.5   Edit
Assignee: Chris Jaun CLA
QA Contact: Nitin Dahyabhai CLA
URL:
Whiteboard:
Keywords: contributed
Depends on:
Blocks:
 
Reported: 2009-03-17 11:08 EDT by Chris Jaun CLA
Modified: 2010-03-03 11:18 EST (History)
0 users

See Also:
thatnitind: review+


Attachments
Fixes the infer engine for unary expressions (1.26 KB, patch)
2009-03-31 16:43 EDT, Chris Jaun CLA
thatnitind: iplog+
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Chris Jaun CLA 2009-03-17 11:08:59 EDT
Build ID: WTP 3.1 m6

Steps To Reproduce:
Enter the following in the JS editor:

var point2 = {x:2.3, y:-1.2};

If you attempt content assist after typing "point2.x." you get suggestions for Number.

If you attempt it after "point2.y." you get no suggestions.

If you change y:-1.2 to y:1.2 content assist starts working.

More information:
Comment 1 Chris Jaun CLA 2009-03-31 16:43:51 EDT
Created attachment 130465 [details]
Fixes the infer engine for unary expressions
Comment 2 Chris Jaun CLA 2009-03-31 16:44:13 EDT
Can be fixed in 3.0.5 and 3.1.
Comment 3 Nitin Dahyabhai CLA 2009-04-02 02:36:20 EDT
Applied to 3.1m7
Comment 4 Nitin Dahyabhai CLA 2009-04-13 17:15:10 EDT
Applied to 3.0.5, thanks, Chris.