Introduce FIR_IDENTICAL for FIR vs old frontend tests #KT-36879 Fixed

This commit is contained in:
Mikhail Glukhikh
2020-03-04 17:54:33 +03:00
parent 186e0b0cba
commit 8884cbe415
2268 changed files with 1175 additions and 19754 deletions
@@ -1,7 +0,0 @@
internal abstract class Test</*0*/ in I> {
private/*private to this*/ final fun foo(): I {
throw Exception()
}
private/*private to this*/ final val i: I get() = foo()
}
@@ -1,3 +1,4 @@
// FIR_IDENTICAL
internal abstract class Test</*0*/ in I> {
private/*private to this*/ final fun foo(): I {
throw Exception()
@@ -1,20 +0,0 @@
fun <T> getT(): T = null!!
class A<in I>(init: I) {
private val i: I
init {
i = getT()
}
private var i2 = i
private val i3: I
private var i4 = getT<I>()
init {
i2 = getT()
i3 = init
i4 = i3
}
}
@@ -1,3 +1,4 @@
// FIR_IDENTICAL
fun <T> getT(): T = null!!
class A<in I>(init: I) {