Skip to content

Commit 9c948ff

Browse files
author
Roman Venediktov
committed
KEEP-0430: Reformulated restriction for properties without a backing field
1 parent 2519ce4 commit 9c948ff

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

proposals/KEEP-0430-explicit-backing-fields.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,7 @@ Automatic smart cast on properties with EBF is disabled inside `public`, `intern
175175

176176
* It's prohibited to put `@JvmField` annotation on property with explicit backing field.
177177
* Local property can't have an explicit backing field.
178-
* Property with extension receiver or context parameters can't have an explicit backing field as it does not have a backing field.
178+
* All properties that have no backing field can't declare an explicit backing field (f.e. properties with extension receiver or context parameters, abstract properties, interface properties, etc.)
179179
* Visibility of property must be more permissive than explicit backing field visibility. (Anything other than `private`)
180180
* It's a warning if a property type is equal to the EBF type.
181181

0 commit comments

Comments
 (0)