Merge "diagnostic with Java 8" tests with general diagnostic tests
This commit is contained in:
@@ -0,0 +1,23 @@
|
||||
// !CHECK_TYPE
|
||||
// FULL_JDK
|
||||
// FILE: A.java
|
||||
import java.util.function.Consumer;
|
||||
|
||||
public class A<T> {
|
||||
void test(Consumer<? super T> consumer) {}
|
||||
}
|
||||
|
||||
// FILE: 1.kt
|
||||
import java.util.function.Consumer
|
||||
|
||||
fun test(a: A<out Number>) {
|
||||
a.test (Consumer {
|
||||
it checkType { _<Number>() }
|
||||
it.toInt()
|
||||
})
|
||||
|
||||
a.test {
|
||||
it checkType { _<Number>() }
|
||||
it.toInt()
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user