calc expected type on the left of assignment based on standalone expression type from the right side (IDEA-199273)

This commit is contained in:
Anna.Kozlova
2019-02-07 15:59:00 +01:00
parent 43434ac2b4
commit a98a18ce8a
3 changed files with 15 additions and 1 deletions
@@ -0,0 +1,7 @@
// "Create local variable 't'" "true"
class Test {
private void f(boolean f) {
String t = f ? null : "";
}
}
@@ -0,0 +1,7 @@
// "Create local variable 't'" "true"
class Test {
private void f(boolean f) {
<caret>t = f ? null : "";
}
}