0ffa0b2bd7
In future 'Local' effective visibility could be used as a flag of local declaration
27 lines
769 B
Plaintext
Vendored
27 lines
769 B
Plaintext
Vendored
FILE: localInnerClass.kt
|
|
public abstract interface Foo : R|kotlin/Any| {
|
|
}
|
|
public final fun bar(): R|kotlin/Unit| {
|
|
object : R|Foo| {
|
|
private[local] constructor(): R|anonymous| {
|
|
super<R|kotlin/Any|>()
|
|
}
|
|
|
|
public[local] final fun foo(): R|Foo| {
|
|
^foo this@R|/anonymous|.R|/<anonymous>.Derived.Derived|(Int(42))
|
|
}
|
|
|
|
local final inner class Derived : R|Foo| {
|
|
public[local] constructor(x: R|kotlin/Int|): R|<anonymous>.Derived| {
|
|
super<R|kotlin/Any|>()
|
|
}
|
|
|
|
public[local] final val x: R|kotlin/Int| = R|<local>/x|
|
|
public get(): R|kotlin/Int|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|