blob: c1935e4f8e61812257c33e9a73592aa2fb1e3af3 [file]
// RUN_PIPELINE_TILL: FRONTEND
// WITH_NEW_INFERENCE
// documents inconsistency between scripts and classes, see DeclarationScopeProviderImpl
// DUMP_CFG: LEVELS
fun function() = 42
val property = ""
class Nested {
fun f() = function()
fun g() = property
}
<!INNER_ON_TOP_LEVEL_SCRIPT_CLASS_WARNING!>inner<!> class Inner {
fun innerFun() = function()
val innerProp = property
fun innerThisFun() = this<!UNRESOLVED_LABEL!>@NestedInnerClass<!>.function()
val innerThisProp = this<!UNRESOLVED_LABEL!>@NestedInnerClass<!>.property
inner class InnerInner {
fun f() = innerFun()
fun g() = innerProp
fun h() = this@Inner.innerFun()
fun i() = this@Inner.innerProp
}
}
/* GENERATED_FIR_TAGS: classDeclaration, functionDeclaration, inner, integerLiteral, localProperty, propertyDeclaration,
stringLiteral, thisExpression */