|
3 | 3 | - **Type**: Design Proposal
|
4 | 4 | - **Author**: Nikolay Lunyak, Roman Elizarov
|
5 | 5 | - **Contributors**: Svetlana Isakova, Kirill Rakhman, Dmitry Petrov, Roman Elizarov, Ben Leggiero, Matej Drobnič, Mikhail Glukhikh, Nikolay Lunyak
|
6 |
| -- **Status**: Prototype implemented in FIR |
| 6 | +- **Status**: Prototype implemented in K2 compiler, in preview since 1.7.0 |
7 | 7 | - **Initial YouTrack Issue**: [KT-14663](https://youtrack.jetbrains.com/issue/KT-14663)
|
8 | 8 | - **Initial Proposal**: [private_public_property_types#122](https://github.com/Kotlin/KEEP/pull/122)
|
9 | 9 |
|
@@ -54,6 +54,8 @@ class C {
|
54 | 54 | * [Direct Backing Field Access](#direct-backing-field-access)
|
55 | 55 | * [Protected Fields](#protected-fields)
|
56 | 56 | * [Mutable Fields for Read-only Properties](#mutable-fields-for-read-only-properties)
|
| 57 | +* [Change log](#change-log) |
| 58 | + * [Prototype in K2 preview with Kotlin 1.7.0](#prototype-in-k2-preview-with-kotlin-170) |
57 | 59 |
|
58 | 60 | <!--- END -->
|
59 | 61 |
|
@@ -414,3 +416,15 @@ override val value: T
|
414 | 416 | // initializes _value backing field on the first access
|
415 | 417 | }
|
416 | 418 | ```
|
| 419 | + |
| 420 | +## Change log |
| 421 | + |
| 422 | +This section records changes to this KEEP. |
| 423 | + |
| 424 | +### Prototype in K2 preview with Kotlin 1.7.0 |
| 425 | + |
| 426 | +Prototype of this proposal has been delivered in Kotlin 1.7.0 as a part of K2 compiler preview. |
| 427 | +In order to try out his new feature you need to enable the K2 compiler with |
| 428 | +`-Xuse-k2` command line option and enable this language feature with `-XXLanguage:+ExplicitBackingFields`. |
| 429 | +The implementation is not stable yet and will generate pre-release binary. |
| 430 | +There is no IDE support yet. |
0 commit comments