[FIR-TEST] Move analysis tests to separate module

This commit is contained in:
Dmitriy Novozhilov
2020-03-18 15:10:46 +03:00
parent 3a479d5d16
commit cc07ae96b3
1477 changed files with 1001 additions and 980 deletions
@@ -0,0 +1,30 @@
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