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

Key: IDEA-11796
Type: Bug Bug
Status: Open Open
Assignee: Alexey Kudravtsev
Reporter: Taras Tielkes
Votes: 0
Watchers: 1
Operations

If you were logged in you would be able to see more operations.
IDEA: Feedback

"Add explicit type arguments" QuickFix not available inside ternary expression

Created: 05 Mar 07 13:14   Updated: 09 Mar 07 15:28
Component/s: Editor. Intention Actions

Build: 6,733


 Description  « Hide
Set<String> f(int i) {
  return i == 2 ? null : Collections.emptySet();
}

Error shown for expression is: incompatible types (Set<String> vs Set<Object>). I expected to see the "Add explicit type arguments" QuickFix, to transform the code to:

Set<String> f(int i) {
  return i == 2 ? null : Collections.<String>emptySet();
}


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