[FIR-TEST] Add new testdata generated after changes in previous commit

This commit is contained in:
Dmitriy Novozhilov
2019-12-11 16:16:22 +03:00
parent e9c02a1cca
commit 2536fa0cd5
4578 changed files with 104067 additions and 1 deletions
@@ -0,0 +1,14 @@
// !DIAGNOSTICS: -UNUSED_PARAMETER
interface Foo<X> {
fun foo(x: X)
}
open class FooImpl : Foo<String> {
override fun foo(x: String) {
}
}
open class FooImpl2 : FooImpl() {
fun foo(x: Any) {
}
}
@@ -0,0 +1,8 @@
open class B {
fun getX() = 1
}
class C : B() {
val x: Int
get() = 1
}
@@ -0,0 +1,5 @@
open class B {
fun getX() = 1
}
class C(val x: Int) : B()
@@ -0,0 +1,7 @@
open class B {
fun getX() = 1
}
class C : B() {
val x: Int = 1
}
@@ -0,0 +1,8 @@
open class B {
val x: Int
get() = 1
}
class C : B() {
fun getX() = 1
}
@@ -0,0 +1,9 @@
// !DIAGNOSTICS: -UNUSED_PARAMETER
open class Base {
open fun `foo$default`(d: Derived, i: Int, mask: Int, mh: Any) {}
}
class Derived : Base() {
fun foo(i: Int = 0) {}
}
@@ -0,0 +1,10 @@
interface B {
fun getX() = 1
}
interface D {
val x: Int
}
class C(d: D) : D by d, B {
}
@@ -0,0 +1,9 @@
// !DIAGNOSTICS: -UNUSED_PARAMETER
open class B {
fun foo(l: List<String>) {}
}
class C : B() {
fun foo(l: List<Int>) {}
}
@@ -0,0 +1,7 @@
interface B {
fun getX() = 1
}
class C : B {
override val x = 1
}
@@ -0,0 +1,8 @@
open class B {
private fun getX() = 1
}
class C : B() {
val x: Int
get() = 1
}
@@ -0,0 +1,7 @@
open class C {
val x = 1
}
interface Tr : C {
fun getX() = 1
}
@@ -0,0 +1,8 @@
interface T {
fun getX() = 1
}
class C : T {
val x: Int
get() = 1
}
@@ -0,0 +1,8 @@
interface T {
fun getX(): Int
}
abstract class C : T {
val x: Int
get() = 1
}
@@ -0,0 +1,8 @@
interface T {
val x: Int
get() = 1
}
class C : T {
fun getX() = 1
}
@@ -0,0 +1,7 @@
interface T {
val x: Int
}
abstract class C : T {
fun getX() = 1
}