[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,4 @@
class C {
val x = 1
fun getX() = 1
}
@@ -0,0 +1,6 @@
class C {
companion object {
val x = 1
fun getX() = 1
}
}
@@ -0,0 +1,3 @@
class C(val x: Int) {
fun getX() = 1
}
@@ -0,0 +1,6 @@
// !DIAGNOSTICS: -UNUSED_PARAMETER
class C {
fun foo(x: Any) {}
fun Any.foo() {}
}
@@ -0,0 +1,7 @@
// !DIAGNOSTICS: -UNUSED_PARAMETER
class C {
fun getX(t: Any) = 1
val Any.x: Int
get() = 1
}
@@ -0,0 +1,7 @@
// !DIAGNOSTICS: -UNUSED_PARAMETER
class C {
fun setX(x: Int) {}
var x: Int = 1
}
@@ -0,0 +1,8 @@
// !DIAGNOSTICS: -UNUSED_PARAMETER
class C {
fun setX(x: Int) {}
var x: Int = 1
set(v) {}
}
@@ -0,0 +1,6 @@
fun foo() {
class C {
val x = 1
fun getX() = 1
}
}
@@ -0,0 +1,8 @@
class Outer {
fun foo() {
class C {
val x = 1
fun getX() = 1
}
}
}
@@ -0,0 +1,6 @@
class B {
class C {
val x = 1
fun getX() = 1
}
}
@@ -0,0 +1,4 @@
object C {
val x = 1
fun getX() = 1
}
@@ -0,0 +1,5 @@
fun foo() =
object {
val x = 1
fun getX() = 1
}
@@ -0,0 +1,6 @@
class Outer {
val x = object {
val x = 1
fun getX() = 1
}
}
@@ -0,0 +1,13 @@
// FILE: A.java
public class A {
public String getFoo() {
return "Foo";
}
}
// FILE: B.kt
class B(private val foo: String) : A() {
override fun getFoo(): String = foo
}
@@ -0,0 +1,2 @@
val x = 1
fun getX() = 1
@@ -0,0 +1,5 @@
// FILE: a.kt
val x = 1
// FILE: b.kt
fun getX() = 1
@@ -0,0 +1,3 @@
val x: Int
get() = 1
fun getX() = 1
@@ -0,0 +1,5 @@
interface T {
val x: Int
get() = 1
fun getX() = 1
}
@@ -0,0 +1,4 @@
interface T {
val x: ErrorType
fun getX(): ErrorType1
}