KT-12152 : constructor consistency: distinguish properties with and w/o backing fields, with default / custom accessors

This commit is contained in:
Mikhail Glukhikh
2015-08-12 14:58:06 +03:00
parent 422ea4c6cb
commit be40cf8138
10 changed files with 148 additions and 18 deletions
@@ -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 }<!>