Files
kotlin-fork/compiler/fir/analysis-tests/testData/resolve/problems2.kt
T
2020-03-19 09:51:01 +03:00

30 lines
802 B
Kotlin
Vendored

class Interner<T> {
private fun find(obj: T): Int? = null
fun intern(obj: T) = find(obj)
}
class Externer {
private fun find(obj: Int): Int? = null
fun intern(obj: Int) = find(obj)
}
interface Some {
data class WithPrimary(val x: Int, val arr: Array<String>? = null, val s: String? = null)
}
fun test() {
Some.WithPrimary(42, arrayOf("alpha", "omega"))
}
class KonanTarget(val name: String)
val KonanTarget.presetName
get() = this.name
// Own private property conflicts with synthetic property from Java supertype
// Exhaustive when expressions give Any result type
// Substitution for field declared in Java super-type does not work (KotlinStringLiteralTextEscaper.myHost)
// Super is not resolved in anonymous object
// TypeParameterDescriptor.name is not resolved