[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 @@
fun foo() = throw Exception()
fun bar() = null!!
fun baz() = bar()
fun gav(): Any = null!!
val x = null!!
val y: Nothing = throw Exception()
fun check() {
// Error: KT-10449
fun local() = bar()
// Unreachable / unused, but not implicit Nothing
val x = null!!
}
fun nonLocalReturn() = run { return }
class Klass {
fun bar() = null!!
val y = null!!
init {
fun local() = bar()
// Should be unreachable: see KT-5311
val z = null!!
}
fun foo() {
fun local() = bar()
val x = y
}
}
interface Base {
val x: Int
fun foo(): String
}
class Derived : Base {
// Ok for override
override val x = null!!
override fun foo() = null!!
}