java stub for literal expression to ensure parenthesis

This commit is contained in:
Anna.Kozlova
2016-07-20 09:29:54 +02:00
parent a1b30986af
commit 1e5372292b
4 changed files with 17 additions and 1 deletions
@@ -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");