FIR: Properly support local functions in DEBUG_INFO_CALL
This commit is contained in:
@@ -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))
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user