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 @@
// !LANGUAGE: +LateinitLocalVariables
fun test() {
lateinit var s: String
s = ""
s.length
}
@@ -1,3 +1,4 @@
// FIR_IDENTICAL
// !LANGUAGE: +LateinitLocalVariables
fun test() {
@@ -1,24 +0,0 @@
// !LANGUAGE: +LateinitLocalVariables
fun test1() {
lateinit var s: String
s.length
}
fun test2() {
lateinit var s: String
run {
s = ""
}
s.length
}
fun almostAlwaysTrue(): Boolean = true
fun test3() {
lateinit var s: String
if (almostAlwaysTrue()) {
s = ""
}
s.length
}
@@ -1,3 +1,4 @@
// FIR_IDENTICAL
// !LANGUAGE: +LateinitLocalVariables
fun test1() {