[FIR-TEST] Add new testdata generated after changes in previous commit
This commit is contained in:
+19
@@ -0,0 +1,19 @@
|
||||
interface IBase1 {
|
||||
fun foo(): Any
|
||||
}
|
||||
|
||||
open class IDerived1 : IBase1 {
|
||||
override fun foo(): String = "1"
|
||||
}
|
||||
|
||||
class Broken1(val b: IBase1) : IBase1 by b, IDerived1()
|
||||
|
||||
interface IBase2 {
|
||||
val foo: Any
|
||||
}
|
||||
|
||||
open class IDerived2 : IBase2 {
|
||||
override val foo: String = "2"
|
||||
}
|
||||
|
||||
class Broken2(val b: IBase2) : IBase2 by b, IDerived2()
|
||||
+19
@@ -0,0 +1,19 @@
|
||||
interface IBase1 {
|
||||
fun foo(): Any
|
||||
}
|
||||
|
||||
interface IDerived1 {
|
||||
fun foo(): String
|
||||
}
|
||||
|
||||
class Broken1(val b: IBase1) : IBase1 by b, IDerived1
|
||||
|
||||
interface IBase2 {
|
||||
val foo: Any
|
||||
}
|
||||
|
||||
interface IDerived2 {
|
||||
val foo: String
|
||||
}
|
||||
|
||||
class Broken2(val b: IBase2) : IBase2 by b, IDerived2
|
||||
+17
@@ -0,0 +1,17 @@
|
||||
interface IA {
|
||||
fun foo(): Number
|
||||
}
|
||||
|
||||
interface IB : IA {
|
||||
override fun foo(): Int
|
||||
}
|
||||
|
||||
object AImpl : IA {
|
||||
override fun foo() = 42
|
||||
}
|
||||
|
||||
open class C : IA by AImpl, IB
|
||||
|
||||
class D : C() {
|
||||
override fun foo(): Double = 3.14
|
||||
}
|
||||
+19
@@ -0,0 +1,19 @@
|
||||
interface IBase1 {
|
||||
fun foo(): Any
|
||||
}
|
||||
|
||||
interface IDerived1 : IBase1 {
|
||||
override fun foo(): String
|
||||
}
|
||||
|
||||
class Broken1(val b: IBase1) : IBase1 by b, IDerived1
|
||||
|
||||
interface IBase2 {
|
||||
val foo: Any
|
||||
}
|
||||
|
||||
interface IDerived2 : IBase2 {
|
||||
override val foo: String
|
||||
}
|
||||
|
||||
class Broken2(val b: IBase2) : IBase2 by b, IDerived2
|
||||
Reference in New Issue
Block a user