mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-04-24 07:21:25 +07:00
bring var to scope: disabled for resource variables (IDEA-180436)
EA-61004 - assert: BringVariableIntoScopeFix.invoke
This commit is contained in:
@@ -0,0 +1,25 @@
|
||||
// "Bring 'Resource r' into scope" "false"
|
||||
class IDEA121153 {
|
||||
String foo()
|
||||
{
|
||||
try (Resource r = getResource()) {
|
||||
}
|
||||
return <caret>r.get();
|
||||
}
|
||||
|
||||
public Resource getResource() {
|
||||
return new Resource();
|
||||
}
|
||||
|
||||
class Resource implements AutoCloseable{
|
||||
|
||||
@Override
|
||||
public void close() {
|
||||
|
||||
}
|
||||
|
||||
public String get() {
|
||||
return "";
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user