Files
openide/java/java-tests/testData/codeInsight/completeStatement/ForEachSingleStatementInBody.java
Tagir Valeev b5838faa84 [java-completion] Complete statement: process loops uniformly; wrap loop body
Fixes IDEA-73881 "Complete Current Statement" incorrectly handles for with non-block loop statement

GitOrigin-RevId: 0e92756e7536f5d939db3f2f0ed42c8e716076c3
2022-04-21 08:05:42 +00:00

6 lines
93 B
Java

class X {{
int[] a = new int[3];
long res = 0;
for (int val : a)<caret>
res+=val
}}