[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,25 @@
// !LANGUAGE: -BoundCallableReferences
class C { companion object }
val ok1 = C::hashCode
val fail1 = C.Companion::hashCode
object O {
class Y {
companion object
}
}
val fail2 = O::hashCode
val ok2 = O::Y
val ok3 = O.Y::hashCode
enum class E {
Entry
}
val ok4 = E.Entry::hashCode
fun hashCode() {}
val fail3 = ""::hashCode
val fail4 = (C)::hashCode
val fail5 = (C.Companion)::hashCode
@@ -0,0 +1,18 @@
// !LANGUAGE: -BoundCallableReferences
class C { companion object }
val ok1 = C::class
val ok2 = C.Companion::class
object O
val ok3 = O::class
enum class E {
Entry
}
val ok4 = E.Entry::class
val fail1 = ""::class
val fail2 = String?::class
val fail3 = (C)::class
val fail4 = (C.Companion)::class
@@ -0,0 +1,11 @@
// !LANGUAGE: -BoundCallableReferences
// !DIAGNOSTICS: -UNCHECKED_CAST
import kotlin.reflect.KClass
val <T : Any> KClass<T>.java: Class<T> get() = null!!
val <T : Any> KClass<T>.javaObjectType: Class<T>
get() {
return java.<!UNRESOLVED_REFERENCE!>lang<!>.<!UNRESOLVED_REFERENCE!>Class<!>::class.<!INAPPLICABLE_CANDIDATE!>java<!> as Class<T>
}
@@ -0,0 +1,10 @@
// !LANGUAGE: -BoundCallableReferences
import kotlin.reflect.KClass
val <T : Any> KClass<T>.java: Class<T> get() = null!!
val <T : Any> KClass<T>.foo: Any?
get() {
return java.<!UNRESOLVED_REFERENCE!>lang<!>.<!UNRESOLVED_REFERENCE!>Integer<!>::hashCode
}