K2 Scripting: deprecate top level script inner classes

no LT support yet
This commit is contained in:
Ilya Chernikov
2023-06-07 14:36:40 +02:00
committed by Space Team
parent 7484ccb9ee
commit 70d2fcd9c4
16 changed files with 95 additions and 12 deletions
@@ -10,7 +10,7 @@ class Nested {
}
<!WRONG_MODIFIER_CONTAINING_DECLARATION!>inner<!> class Inner {
<!INNER_ON_TOP_LEVEL_SCRIPT_CLASS_WARNING!>inner<!> class Inner {
fun innerFun() = function()
val innerProp = property
fun innerThisFun() = this<!UNRESOLVED_LABEL!>@NestedInnerClass<!>.function()