[FIR-TEST] Add new testdata generated after changes in previous commit

This commit is contained in:
Dmitriy Novozhilov
2019-12-11 16:16:22 +03:00
parent e9c02a1cca
commit 2536fa0cd5
4578 changed files with 104067 additions and 1 deletions
@@ -0,0 +1,52 @@
// !CHECK_TYPE
// !DIAGNOSTICS: -UNUSED_EXPRESSION -UNUSED_PARAMETER -UNUSED_VARIABLE
// FILE: 2.kt
package b
import a.A
@Suppress("INVISIBLE_MEMBER", "INVISIBLE_REFERENCE")
@kotlin.internal.HidesMembers
fun A.forEach(i: Int) = i
@Suppress("INVISIBLE_MEMBER", "INVISIBLE_REFERENCE")
@kotlin.internal.HidesMembers
fun A.forEach(s: String) {}
// FILE: 1.kt
package a
import b.*
class A {
fun forEach() = this
fun forEach(i: Int) = this
fun forEach(i: String) = this
}
@Suppress("INVISIBLE_MEMBER", "INVISIBLE_REFERENCE")
@kotlin.internal.HidesMembers
fun A.forEach() = ""
@Suppress("INVISIBLE_MEMBER", "INVISIBLE_REFERENCE")
@kotlin.internal.HidesMembers
fun A.forEach(s: String) {}
fun test(a: A) {
a.forEach() checkType { <!UNRESOLVED_REFERENCE!>_<!><String>() }
a.forEach(1) checkType { <!UNRESOLVED_REFERENCE!>_<!><Int>() }
a.forEach("")
with(a) {
forEach() checkType { _<String>() }
forEach(1) checkType { _<Int>() }
forEach("")
}
}