FIR resolution API: fix handling of expressions inside local functions
This commit is contained in:
@@ -0,0 +1,3 @@
|
||||
{
|
||||
"mainFile": "main.kt"
|
||||
}
|
||||
+14
@@ -0,0 +1,14 @@
|
||||
package main
|
||||
|
||||
fun main() {
|
||||
fun foo(): Int {
|
||||
return <caret>bar()
|
||||
}
|
||||
|
||||
foo()
|
||||
}
|
||||
|
||||
fun bar(): Int {
|
||||
val x = 4
|
||||
return 9 * x
|
||||
}
|
||||
+12
@@ -0,0 +1,12 @@
|
||||
FILE: main.kt
|
||||
public final fun main(): R|kotlin/Unit| {
|
||||
local final fun foo(): R|kotlin/Int| {
|
||||
^foo R|main/bar|()
|
||||
}
|
||||
|
||||
R|<local>/foo|()
|
||||
}
|
||||
public final fun bar(): R|kotlin/Int| {
|
||||
lval x: <implicit> = Int(4)
|
||||
^bar Int(9).times#(x#)
|
||||
}
|
||||
@@ -0,0 +1 @@
|
||||
R|main/bar|()
|
||||
Reference in New Issue
Block a user