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,7 +0,0 @@
import kotlin.properties.ReadWriteProperty
import kotlin.properties.Delegates
class C {
val `x$delegate`: ReadWriteProperty<Any, Any>? = null
val x: String? by Delegates.notNull()
}
@@ -1,3 +1,4 @@
// FIR_IDENTICAL
import kotlin.properties.ReadWriteProperty
import kotlin.properties.Delegates
@@ -1,22 +0,0 @@
// !DIAGNOSTICS: -UNUSED_PARAMETER
@JvmName("bar")
fun foo(a: Any) {}
fun Any.foo() {}
@JvmName("barInt")
fun bar(x: List<Int>) {}
@JvmName("barStr")
fun bar(x: List<String>) {}
class C {
var rwProp: Int
@JvmName("get_rwProp")
get() = 0
@JvmName("set_rwProp")
set(v) {}
fun getRwProp(): Int = 123
fun setRwProp(v: Int) {}
}
@@ -1,3 +1,4 @@
// FIR_IDENTICAL
// !DIAGNOSTICS: -UNUSED_PARAMETER
@JvmName("bar")
fun foo(a: Any) {}
@@ -1,22 +0,0 @@
// !DIAGNOSTICS: -UNUSED_PARAMETER
// FILE: foo/A.java
package foo;
public class A {
private static void foo(int s) {}
static void bar(double s) {}
}
// FILE: K.kt
import foo.A
open class K : A() {
companion object {
@JvmStatic
fun foo(i: Int) {}
@JvmStatic
fun bar(d: Double) {}
}
}
@@ -1,3 +1,4 @@
// FIR_IDENTICAL
// !DIAGNOSTICS: -UNUSED_PARAMETER
// FILE: foo/A.java