mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-19 01:50:56 +07:00
10 lines
248 B
Java
10 lines
248 B
Java
// "Bring 'String msg' into scope" "true-preview"
|
|
public class BringVarIntoScope {
|
|
public void moveVariableDeclarationOutOfBlock(boolean b) {
|
|
if (b) {
|
|
var msg = "Leap year";
|
|
} else {
|
|
<caret>msg = "Not a leap year";
|
|
}
|
|
}
|
|
} |