// !LANGUAGE: +NewInference // TARGET_BACKEND: JVM // IGNORE_BACKEND_FIR: JVM_IR // FILE: javaNestedSamInterface.kt import test.A fun box(): String = A(42).get { "OK" } // FILE: test/A.java package test; public class A { private final X x; public A(X x) { this.x = x; } public interface I { T compute(); } public T get(I value) { return value.compute(); } }