[LL FIR] add missed diagnostic tests for scripts
^KT-62840 ^KT-62841 ^KT-62861
This commit is contained in:
committed by
Space Team
parent
8e623ee73a
commit
2f8026f335
@@ -0,0 +1,30 @@
|
||||
// LL_FIR_DIVERGENCE
|
||||
// KT-62841
|
||||
// LL_FIR_DIVERGENCE
|
||||
// !WITH_NEW_INFERENCE
|
||||
// documents inconsistency between scripts and classes, see DeclarationScopeProviderImpl
|
||||
// DUMP_CFG
|
||||
// RENDERER_CFG_LEVELS
|
||||
|
||||
fun function() = 42
|
||||
val property = ""
|
||||
|
||||
class Nested {
|
||||
fun f() = function()
|
||||
fun g() = property
|
||||
}
|
||||
|
||||
|
||||
<!WRONG_MODIFIER_CONTAINING_DECLARATION!>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
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user