IDEA-122974 expected type suggester should ignore 'null' types

This commit is contained in:
Anna Kozlova
2014-03-28 17:09:56 +01:00
parent fddab7b0c0
commit f89a7938fc
3 changed files with 18 additions and 1 deletions

View File

@@ -0,0 +1,9 @@
// "Create Local Variable 'str'" "true"
public class A {
void foo() {
String str;
String s = str;
str = null;
}
}

View File

@@ -0,0 +1,8 @@
// "Create Local Variable 'str'" "true"
public class A {
void foo() {
String s = s<caret>tr;
str = null;
}
}