FIR LL API: resolve PSI elements to more specific FIR element

Compound access and implicit delegated constructor are mapped to FIR
elements that are way too broad.
This commit is contained in:
Tianyu Geng
2021-11-22 21:03:21 -08:00
committed by Ilya Kirillov
parent e8f1af6140
commit bc95733818
27 changed files with 252 additions and 1 deletions
@@ -0,0 +1,4 @@
fun test() {
var i = 1
<expr>i += 1</expr>
}
@@ -0,0 +1,2 @@
expression: i += 1
type: kotlin.Unit
@@ -0,0 +1,4 @@
fun test() {
var i = 1
<expr>i--</expr>
}
@@ -0,0 +1,2 @@
expression: i--
type: kotlin.Int
@@ -0,0 +1,4 @@
fun test() {
var i = 1
<expr>++i</expr>
}
@@ -0,0 +1,2 @@
expression: ++i
type: kotlin.Int