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,6 +0,0 @@
class Test {
lateinit var someRunnable: Runnable
init {
someRunnable = Runnable { someRunnable.run() }
}
}
@@ -1,3 +1,4 @@
// FIR_IDENTICAL
class Test {
lateinit var someRunnable: Runnable
init {
@@ -1,8 +0,0 @@
class Foo {
lateinit var bar: String
constructor(baz: Int) {
// At best, we should have error here despite of lateinit
bar += baz
}
}
@@ -1,3 +1,4 @@
// FIR_IDENTICAL
class Foo {
lateinit var bar: String
@@ -1,9 +0,0 @@
// !DIAGNOSTICS: -UNUSED_PARAMETER
class Foo() {
lateinit var bar: String
constructor(baz: Int) : this() {
bar = ""
}
}
@@ -1,3 +1,4 @@
// FIR_IDENTICAL
// !DIAGNOSTICS: -UNUSED_PARAMETER
class Foo() {
@@ -1,7 +0,0 @@
class Foo {
lateinit var bar: String
fun init() {
bar = ""
}
}
@@ -1,3 +1,4 @@
// FIR_IDENTICAL
class Foo {
lateinit var bar: String
@@ -1,9 +0,0 @@
class Foo {
lateinit var x: String
constructor(y: String) {
x = y
}
constructor()
}
@@ -1,3 +1,4 @@
// FIR_IDENTICAL
class Foo {
lateinit var x: String