[java, jigsaw] Support JDK-8197532: add tests (IDEA-367339) IJ-CR-154794

GitOrigin-RevId: e3acb5c8848ae13da6f28c1593b432e27c81cd14
This commit is contained in:
Aleksey Dobrynin
2025-02-18 15:41:46 +01:00
committed by intellij-monorepo-bot
parent 18337163f5
commit 5151559045
12 changed files with 93 additions and 17 deletions

View File

@@ -6,7 +6,7 @@ interface Func<TIn, TOut>{
class Main {
public static void main(final String[] args) {
Func<Integer, String> func = Integer::<error descr="Reference to 'toString' is ambiguous, both 'toString(int)' and 'toString()' match">toString</error>;
Func<Integer, String> func = Integer::<error descr="Reference to 'toString' is ambiguous, both 'toString()' and 'toString(int)' match">toString</error>;
System.out.println(func.run(6));
}
}