Files
kotlin-fork/compiler/testData/diagnostics/tests/j+k/matchers.kt
T

20 lines
401 B
Kotlin
Vendored

// FIR_IDENTICAL
// FILE: Assert.java
public class Assert {
public static <T> void assertThat(T actual, Matcher<? super T> matcher) {
}
}
// FILE: Matcher.java
public class Matcher<T> {
public static <T> Matcher<java.lang.Iterable<? super T>> hasItem(T item) {
return null;
}
}
// FILE: main.kt
fun test(x: List<String>) {
Assert.assertThat(x, Matcher.hasItem("abc"))
}