mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-09 20:42:52 +07:00
java stub for literal expression to ensure parenthesis
This commit is contained in:
@@ -0,0 +1,6 @@
|
||||
class Test {
|
||||
{
|
||||
Double d = 1.0;
|
||||
<caret>d.byteValue();
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,5 @@
|
||||
class Test {
|
||||
{
|
||||
((Double) 1.0).byteValue();
|
||||
}
|
||||
}
|
||||
@@ -276,6 +276,10 @@ public class InlineLocalTest extends LightCodeInsightTestCase {
|
||||
doTest(false);
|
||||
}
|
||||
|
||||
public void testParenthesisAroundCast() throws Exception {
|
||||
doTest(false);
|
||||
}
|
||||
|
||||
public void testLocalVarInsideLambdaBodyWriteUsage() throws Exception {
|
||||
doTest(true, "Cannot perform refactoring.\n" +
|
||||
"Variable 'hello' is accessed for writing");
|
||||
|
||||
Reference in New Issue
Block a user