KT-12152 : constructor consistency: distinguish properties with and w/o backing fields, with default / custom accessors
This commit is contained in:
+1
-1
@@ -5,7 +5,7 @@ class My {
|
||||
private set
|
||||
|
||||
// Error: Variable 'delegate' must be initialized
|
||||
val another: String = delegate
|
||||
val another: String = <!DEBUG_INFO_LEAKING_THIS!>delegate<!>
|
||||
|
||||
var delegateWithBackingField: String by kotlin.properties.Delegates.notNull()
|
||||
<!ACCESSOR_FOR_DELEGATED_PROPERTY!>private set(arg) { field = arg }<!>
|
||||
|
||||
Reference in New Issue
Block a user