Introduce FIR_IDENTICAL for FIR vs old frontend tests #KT-36879 Fixed
This commit is contained in:
@@ -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()
|
||||
|
||||
-20
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user