Project
IntelliJ IDEA
Priority
Normal
Type
Bug
Fix versions
No Fix versions
State
Fixed
Assignee
Maxim Mossienko
Subsystem
No subsystem
Affected versions
No Affected versions
Fixed in build
108.65  
  • Created by   Maxim Mossienko
    4 years ago (23 Mar 2007 20:16)
  • Updated by   root
    2 years ago (17 Jan 2010 20:43)
  • Jira: IDEADEV-15579
    (history, comments)
 
IDEA-37676 There should be intention to add type to var declaration
0
Issue is visible to: All Users
  The issue is visible to the selected user group only


Issue was resolved
Comments (3)
 
History
 
Linked Issues (?)
 
Maxim Mossienko
  Maxim Mossienko
23 Mar 2007 20:16
4 years ago
An additional QuickFix/intention (if not already present) would be to add type based on initializing expression:

Before:

var foo = getFoo();

After:

var foo:Foo = getFoo();
Taras Tielkes
  Taras Tielkes
23 Mar 2007 20:19
4 years ago
An additional variation would be to add return type declaration to method based on analysis of return statements inside method body. (Or maybe you want separate issue for this as well? :-) )
Maxim Mossienko
  Maxim Mossienko
23 Mar 2007 20:33
4 years ago
Surely :)