FIR IDE: Avoid resolving elvis operator, because it doesn't make sense

There are intrinsics to which elvis operator's usages are resolved;
however, we do not want to expose those intrinsics through the
high-level resolve
This commit is contained in:
Roman Golyshev
2021-12-21 16:01:07 +03:00
committed by teamcity
parent 702ab3408b
commit e3219cc5b6
17 changed files with 124 additions and 2 deletions
@@ -0,0 +1,5 @@
class A
fun test(a: A, b: A) {
<expr>a ?: b</expr>
}
@@ -0,0 +1,5 @@
class A
fun test(a: A, b: A) {
a <expr>?:</expr> b
}
@@ -0,0 +1,5 @@
class A
fun test(a: A, b: A) {
<expr>a === b</expr>
}
@@ -0,0 +1,5 @@
class A
fun test(a: A, b: A) {
a <expr>===</expr> b
}
@@ -0,0 +1,5 @@
class A
fun test(a: A, b: A) {
<expr>a !== b</expr>
}
@@ -0,0 +1,5 @@
class A
fun test(a: A, b: A) {
a <expr>!==</expr> b
}