[FIR-TEST] Add new testdata generated after changes in previous commit
This commit is contained in:
Vendored
+30
@@ -0,0 +1,30 @@
|
||||
// !DIAGNOSTICS: -UNUSED_VARIABLE -UNUSED_PARAMETER
|
||||
// MODULE: m1
|
||||
// FILE: a.kt
|
||||
|
||||
package p
|
||||
|
||||
public class A<X, Y>
|
||||
public class M1 {
|
||||
public val a: A<Int> = A<Int, Int>()
|
||||
}
|
||||
|
||||
// MODULE: m2
|
||||
// FILE: b.kt
|
||||
|
||||
package p
|
||||
|
||||
public class A<X, Y>
|
||||
|
||||
public fun foo(a: A<Int>) {
|
||||
}
|
||||
|
||||
// MODULE: m3(m1, m2)
|
||||
// FILE: b.kt
|
||||
|
||||
import p.*
|
||||
|
||||
fun test() {
|
||||
foo(M1().a)
|
||||
<!INAPPLICABLE_CANDIDATE!>foo<!>(1) // error type on the declaration site
|
||||
}
|
||||
Reference in New Issue
Block a user