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,9 +0,0 @@
class Foo {
fun foo() {}
}
fun Any?.foo() {}
fun test(f : Foo?) {
f.foo()
}
@@ -1,3 +1,4 @@
// FIR_IDENTICAL
class Foo {
fun foo() {}
}
@@ -1,5 +0,0 @@
fun test(a: Any?) {
if (a is String) {
a == ""
}
}
@@ -1,3 +1,4 @@
// FIR_IDENTICAL
fun test(a: Any?) {
if (a is String) {
a == ""
@@ -1,21 +0,0 @@
// FILE: A.java
class A {
enum Empty {}
static Empty foo() { return null; }
}
// FILE: 1.kt
fun bar() = when (A.foo()) {
null -> "null"
else -> "else"
}
fun <T : Number?> baz(t: T) = when (t) {
is Int -> "int"
is Long -> "long"
null -> "null"
else -> "else"
}
@@ -1,3 +1,4 @@
// FIR_IDENTICAL
// FILE: A.java
class A {
@@ -1,7 +0,0 @@
package a
fun foo() {
bar()!!
}
fun bar() = <!UNRESOLVED_REFERENCE!>aa<!>
@@ -1,3 +1,4 @@
// FIR_IDENTICAL
package a
fun foo() {