Files
kotlin-fork/compiler/testData/diagnostics/tests/inference/constraints/errorUpperBoundConstraint.fir.kt
T
2022-11-22 15:46:19 +00:00

26 lines
487 B
Kotlin
Vendored

// FILE: Sam.java
public interface Sam<K> {
Sam.Result<K> compute();
public static class Result<V> {
public static <V> Sam.Result<V> create(V value) {}
}
}
// FILE: Foo.java
public class Foo {
public static <T> void foo(Sam<T> var1) {
}
}
// FILE: test.kt
fun test(e: <!UNRESOLVED_REFERENCE!>ErrorType<!>) {
Foo.<!NEW_INFERENCE_NO_INFORMATION_FOR_PARAMETER, NEW_INFERENCE_NO_INFORMATION_FOR_PARAMETER!>foo<!> {
Sam.Result.create(e)
}
}