[FIR] Hack-in indirectly nested locals resolution
This commit is contained in:
committed by
Mikhail Glukhikh
parent
7422571c72
commit
8e890eba3e
+27
@@ -0,0 +1,27 @@
|
||||
FILE: anonymousInAnonymous.kt
|
||||
public final fun foo(): R|kotlin/Unit| {
|
||||
lval base: R|<anonymous>| = object : R|kotlin/Any| {
|
||||
private constructor(): R|<anonymous>| {
|
||||
super<R|kotlin/Any|>()
|
||||
}
|
||||
|
||||
public final fun bar(): R|<anonymous>| {
|
||||
^bar object : R|kotlin/Any| {
|
||||
private constructor(): R|<anonymous>| {
|
||||
super<R|kotlin/Any|>()
|
||||
}
|
||||
|
||||
public final fun buz(): R|kotlin/String| {
|
||||
^buz this@R|/<anonymous>|.R|/<anonymous>.foobar|
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
public final val foobar: R|kotlin/String| = String()
|
||||
public get(): R|kotlin/String|
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
+8
@@ -0,0 +1,8 @@
|
||||
fun foo() {
|
||||
val base = object {
|
||||
fun bar() = object {
|
||||
fun buz() = foobar
|
||||
}
|
||||
val foobar = ""
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user