You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: proposals/KEEP-0430-explicit-backing-fields.md
+40Lines changed: 40 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -305,3 +305,43 @@ For now, however, we would prefer to keep the question of this possibility open.
305
305
306
306
Existing Kotlin reflection functionality will behave in the way as if there were no explicit backing fields.
307
307
However, additional functionality will be added to support explicit backing fields.
308
+
309
+
## Related proposals
310
+
311
+
Another feature similar to this one, which might be introduced in the future, is **typed delegate access**.
312
+
The idea is to provide access to the instance of a property delegate within the private scope of the property itself.
313
+
This could be achieved by introducing a typed subclass of `KPropertyN`, namely `KDelegatedPropertyN`, which specializes the type of the property’s delegate.
314
+
315
+
For example, for `KDelegatedProperty0`, it might look as follows:
0 commit comments