[FIR-TEST] Add new testdata generated after changes in previous commit
This commit is contained in:
+42
@@ -0,0 +1,42 @@
|
||||
// !DIAGNOSTICS: -UNUSED_VARIABLE -UNUSED_PARAMETER
|
||||
// MODULE: m1
|
||||
// FILE: a.kt
|
||||
|
||||
package p
|
||||
|
||||
public interface A<T>
|
||||
public interface C
|
||||
public interface D<T>
|
||||
public class B : A<Int>, C, D<Int>
|
||||
public class M1 {
|
||||
public val b: B = B()
|
||||
}
|
||||
|
||||
// MODULE: m2
|
||||
// FILE: b.kt
|
||||
|
||||
package p
|
||||
|
||||
public interface A
|
||||
public interface C<T>
|
||||
public interface D<T>
|
||||
|
||||
public fun a(a: A) {
|
||||
}
|
||||
|
||||
public fun c(c: C<Int>) {
|
||||
}
|
||||
|
||||
public fun d(d: D<Int>) {
|
||||
}
|
||||
|
||||
// MODULE: m3(m1, m2)
|
||||
// FILE: b.kt
|
||||
|
||||
import p.*
|
||||
|
||||
fun test() {
|
||||
<!INAPPLICABLE_CANDIDATE!>a<!>(M1().b) // Type arguments do not match
|
||||
c(M1().b) // Type arguments do not match
|
||||
d(M1().b) // Type arguments do match
|
||||
}
|
||||
Reference in New Issue
Block a user