[java-highlighting] variable errors migrated; some improvements in incompatible type fixes

Part of IDEA-365344 Create a new Java error highlighter with minimal dependencies (PSI only)

GitOrigin-RevId: b8531f50c89b009e852e1fdcc9efce1c29dcf4e1
This commit is contained in:
Tagir Valeev
2025-01-28 15:14:44 +01:00
committed by intellij-monorepo-bot
parent 8d746a5a24
commit be747e6461
14 changed files with 121 additions and 118 deletions

View File

@@ -0,0 +1,12 @@
// "Make 'getData()' return 'int[]'" "true-preview"
class Test {
public static void main(String[] args) {
for (int <caret>arg : getData()) {
}
}
private static int[] getData() {
return new String[]{};
}
}

View File

@@ -0,0 +1,12 @@
// "Make 'getData()' return 'int[]'" "true-preview"
class Test {
public static void main(String[] args) {
for (int <caret>arg : getData()) {
}
}
private static String[] getData() {
return new String[]{};
}
}