Support custom accessors for top-level properties in scripts.
This commit is contained in:
@@ -0,0 +1,39 @@
|
||||
val testVal: Int get() = 42
|
||||
|
||||
val testValNoType get() = 42
|
||||
|
||||
val String.testExtVal: Int get() = 42
|
||||
|
||||
val String.testExtValNoType get() = 42
|
||||
|
||||
var testVar: Int get() = 42; set(value) {}
|
||||
|
||||
var String.testExtVar: Int get() = 42; set(value) {}
|
||||
|
||||
val testValLineBreak: Int
|
||||
get() = 42
|
||||
|
||||
val testValLineBreakNoType
|
||||
get() = 42
|
||||
|
||||
<!MUST_BE_INITIALIZED_OR_BE_ABSTRACT!>val testValLineBreakSemi: Int<!>;
|
||||
<!UNRESOLVED_REFERENCE!>get<!>() = 42
|
||||
|
||||
<!MUST_BE_INITIALIZED_OR_BE_ABSTRACT!>val testValLineBreakSemiNoType<!>;
|
||||
<!UNRESOLVED_REFERENCE!>get<!>() = 42
|
||||
|
||||
var testVarLineBreak: Int
|
||||
get() = 42
|
||||
set(value) {}
|
||||
|
||||
var String.testExtVarLineBreak: Int
|
||||
get() = 42
|
||||
set(value) {}
|
||||
|
||||
<!MUST_BE_INITIALIZED_OR_BE_ABSTRACT!>var testVarLineBreakSemi: Int<!>;
|
||||
<!UNRESOLVED_REFERENCE!>get<!>() = 42
|
||||
<!UNRESOLVED_REFERENCE!>set<!>(<!UNRESOLVED_REFERENCE!>value<!>) {}
|
||||
|
||||
<!MUST_BE_INITIALIZED_OR_BE_ABSTRACT!>var String.testExtVarLineBreakSemi: Int<!>;
|
||||
<!UNRESOLVED_REFERENCE!>get<!>() = 42
|
||||
<!UNRESOLVED_REFERENCE!>set<!>(<!UNRESOLVED_REFERENCE!>value<!>) {}
|
||||
Reference in New Issue
Block a user