[FIR-TEST] Add new testdata generated after changes in previous commit
This commit is contained in:
@@ -0,0 +1,24 @@
|
||||
// !WITH_NEW_INFERENCE
|
||||
// !CHECK_TYPE
|
||||
// !DIAGNOSTICS: -UNUSED_PARAMETER
|
||||
// FILE: A.java
|
||||
|
||||
public class A {
|
||||
public static Out<? super CharSequence> foo() { return null; }
|
||||
public static In<? extends CharSequence> bar() { return null; }
|
||||
}
|
||||
|
||||
// FILE: main.kt
|
||||
|
||||
class Out<out E> {
|
||||
fun x(): E = null!!
|
||||
}
|
||||
|
||||
class In<in F> {
|
||||
fun y(f: F) {}
|
||||
}
|
||||
|
||||
fun test() {
|
||||
A.foo().x() checkType { <!UNRESOLVED_REFERENCE!>_<!><Any?>() }
|
||||
A.bar().y(null)
|
||||
}
|
||||
Reference in New Issue
Block a user