[FIR-TEST] Add new testdata generated after changes in previous commit
This commit is contained in:
+21
@@ -0,0 +1,21 @@
|
||||
// !WITH_NEW_INFERENCE
|
||||
package a
|
||||
|
||||
class MyClass {
|
||||
fun component1(i: Int) {}
|
||||
}
|
||||
|
||||
class MyClass2 {}
|
||||
|
||||
fun MyClass2.component1() = 1.2
|
||||
fun MyClass2.component1() = 1.3
|
||||
|
||||
fun test(mc1: MyClass, mc2: MyClass2) {
|
||||
val (<!INAPPLICABLE_CANDIDATE!>a<!>, <!UNRESOLVED_REFERENCE!>b<!>) = mc1
|
||||
val (c) = mc2
|
||||
|
||||
//a,b,c are error types
|
||||
use(a, b, c)
|
||||
}
|
||||
|
||||
fun use(vararg a: Any?) = a
|
||||
Reference in New Issue
Block a user