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,12 +0,0 @@
interface A {
fun foo() {}
}
open class B(a: A) : A by a
class C(a: A): B(a), A {
}
fun b(c: C) {
c.foo();
}
@@ -1,3 +1,4 @@
// FIR_IDENTICAL
interface A {
fun foo() {}
}
@@ -1,10 +0,0 @@
interface A {
fun foo() {}
}
interface B : A {}
class C(b : B) : B by b {
}
@@ -1,3 +1,4 @@
// FIR_IDENTICAL
interface A {
fun foo() {}
}
@@ -1,11 +0,0 @@
interface A<T> {
fun foo()
}
interface B<T> : A<T> {
fun bar()
}
class BImpl<T>(a: A<T>) : B<T>, A<T> by a {
override fun bar() { throw UnsupportedOperationException() }
}
@@ -1,3 +1,4 @@
// FIR_IDENTICAL
interface A<T> {
fun foo()
}
@@ -1,18 +0,0 @@
public interface Base {
fun test() = "OK"
}
abstract class Impl : Base {
override abstract fun test(): String
}
class Delegate : Base
fun box(): String {
object : Impl(), Base by Delegate() {
}
return "OK"
}
@@ -1,3 +1,4 @@
// FIR_IDENTICAL
public interface Base {
fun test() = "OK"
}
@@ -1,19 +0,0 @@
public interface Base {
fun test() = "OK"
}
public interface Base2 : Base
class Delegate : Base2
fun box(): String {
object : Base, Base2 by Delegate() {
}
object : Base2, Base by Delegate() {
}
return "OK"
}
@@ -1,3 +1,4 @@
// FIR_IDENTICAL
public interface Base {
fun test() = "OK"
}
@@ -1,20 +0,0 @@
public interface Base {
val test: String
get() = "OK"
}
public interface Base2 : Base
class Delegate : Base2
fun box(): String {
object : Base, Base2 by Delegate() {
}
object : Base2, Base by Delegate() {
}
return "OK"
}
@@ -1,3 +1,4 @@
// FIR_IDENTICAL
public interface Base {
val test: String
get() = "OK"
@@ -1,18 +0,0 @@
public interface Base {
fun test() = "OK"
}
open class Base2 : Base {
override fun test() = "OK2"
}
class Delegate : Base
fun box(): String {
object : Base2(), Base by Delegate() {
override fun test() = "OK"
}
return "OK"
}
@@ -1,3 +1,4 @@
// FIR_IDENTICAL
public interface Base {
fun test() = "OK"
}
@@ -1,14 +0,0 @@
public interface Base<T> {
fun test(p: T) = "Base"
}
public interface Derived<Y> : Base<Y>
class Delegate<Z> : Derived<Z>
fun box(): String {
object : Derived<String> by Delegate() {
}
return "OK"
}
@@ -1,3 +1,4 @@
// FIR_IDENTICAL
public interface Base<T> {
fun test(p: T) = "Base"
}
@@ -1,15 +0,0 @@
interface Base {
fun test() = "OK"
}
open class Base2 : Base
class Delegate : Base
fun box(): String {
object : Base2(), Base by Delegate() {
}
return "OK"
}
@@ -1,3 +1,4 @@
// FIR_IDENTICAL
interface Base {
fun test() = "OK"
}