Script refactoring, frontend tests: changes according to semantic changes in scripts
Add checker tests for scripts
This commit is contained in:
@@ -0,0 +1,24 @@
|
||||
// documents inconsistency between scripts and classes, see DeclarationScopeProviderImpl
|
||||
|
||||
fun function() = 42
|
||||
val property = ""
|
||||
|
||||
class Nested {
|
||||
fun f() = <!INACCESSIBLE_OUTER_CLASS_EXPRESSION!>function()<!>
|
||||
fun g() = <!INACCESSIBLE_OUTER_CLASS_EXPRESSION!>property<!>
|
||||
}
|
||||
|
||||
|
||||
inner class Inner {
|
||||
fun innerFun() = function()
|
||||
val innerProp = property
|
||||
fun innerThisFun() = this@NestedInnerClass.function()
|
||||
val innerThisProp = this@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