Introduce FIR_IDENTICAL for FIR vs old frontend tests #KT-36879 Fixed
This commit is contained in:
@@ -1,16 +0,0 @@
|
||||
interface X {
|
||||
fun foo(): Int = 42
|
||||
}
|
||||
|
||||
interface Y
|
||||
|
||||
class A: X, Y
|
||||
|
||||
class B: X, Y
|
||||
|
||||
class Out<out T: X>(val x: T)
|
||||
|
||||
fun bar(a: Out<A>, b: Out<B>, f: Boolean): Int {
|
||||
val x = if (f) a else b
|
||||
return x.x.foo()
|
||||
}
|
||||
@@ -1,3 +1,4 @@
|
||||
// FIR_IDENTICAL
|
||||
interface X {
|
||||
fun foo(): Int = 42
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user