FIR: Properly support local functions in DEBUG_INFO_CALL

This commit is contained in:
Denis Zharkov
2020-04-15 18:32:43 +03:00
parent fa3b3e7a9a
commit 65e444a39c
5 changed files with 52 additions and 7 deletions
@@ -9,6 +9,10 @@ FILE: debugInfoCall.kt
}
public final fun foo(x: R|kotlin/Int|): R|kotlin/Unit| {
local final fun baz(x: R|kotlin/Double|): R|kotlin/Unit| {
}
R|<local>/baz|(Double(1.0))
}
public final val bar: R|B| = R|kotlin/TODO|()
@@ -18,8 +22,12 @@ FILE: debugInfoCall.kt
public final fun R|A|.foo(x: R|kotlin/String|): R|kotlin/Unit| {
}
public final fun main(): R|kotlin/Unit| {
local final fun R|A|.foo(x: R|kotlin/Double|): R|kotlin/Unit| {
}
lval a: R|A| = R|/A.A|()
R|<local>/a|.R|/A.foo|(Int(1))
R|<local>/a|.R|/foo|(String())
R|<local>/a|.R|<local>/foo|(Double(1.0))
R|<local>/a|.R|/A.bar|.R|/B.invoke|(Int(1))
}