This Bugzilla instance is deprecated, and most Eclipse projects now use GitHub or Eclipse GitLab. Please see the deprecation plan for details.
Bug 402162 - [enhancement] Undefined type
Summary: [enhancement] Undefined type
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-03-01 11:51 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-03-01 11:51:53 EST
Support Undefined type when the type is not known or there is no vjetdoc or comment.

Such as 

var x = 10; // inferred as Number
var y = 10; //<Number; declared as number
var z; // inferred as Undefined, inference can change during later assignment expressions.

 
function foo(a,b){}// a and b are assumed to be Undefined type since there is no docs or way to infer what a or b are. accessing properties which are unknown will not get a warning or error. Once a vjetdoc comment is added then undefined properties and methods will be checked.
Comment 1 Justin Early CLA 2013-03-01 12:48:27 EST
VJET now supports Undefined type a dynamic type which is used when their is no vjetdoc declaration.