CreateLocalFromUsageFix, ExpectedTypesProvider fixes (incl. EA-134473 - assert: CreateLocalFromUsageFix.getAnchor)

This commit is contained in:
Tagir Valeev
2019-01-24 18:25:47 +07:00
parent 0c9a1285ad
commit bcc8d9d5ba
5 changed files with 41 additions and 16 deletions

View File

@@ -0,0 +1,9 @@
// "Create local variable 'foo'" "true"
class Foo {
int x = foo ? 0 : switch(1) {
default -> {
boolean foo;
break foo;
}
};
}

View File

@@ -0,0 +1,8 @@
// "Create local variable 'foo'" "true"
class Foo {
int x = foo ? 0 : switch(1) {
default -> {
break f<caret>oo;
}
};
}

View File

@@ -0,0 +1,6 @@
// "Create local variable 'foo'" "false"
class Foo {
int x = foo ? 0 : switch(1) {
default -> f<caret>oo;
};
}