Skip to content

Commit cc38eca

Browse files
committed
Prototype in K2 preview with Kotlin 1.7.0
1 parent 31f6f8e commit cc38eca

File tree

1 file changed

+15
-1
lines changed

1 file changed

+15
-1
lines changed

Diff for: proposals/explicit-backing-fields.md

+15-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
- **Type**: Design Proposal
44
- **Author**: Nikolay Lunyak, Roman Elizarov
55
- **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
77
- **Initial YouTrack Issue**: [KT-14663](https://youtrack.jetbrains.com/issue/KT-14663)
88
- **Initial Proposal**: [private_public_property_types#122](https://github.com/Kotlin/KEEP/pull/122)
99

@@ -54,6 +54,8 @@ class C {
5454
* [Direct Backing Field Access](#direct-backing-field-access)
5555
* [Protected Fields](#protected-fields)
5656
* [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)
5759

5860
<!--- END -->
5961

@@ -414,3 +416,15 @@ override val value: T
414416
// initializes _value backing field on the first access
415417
}
416418
```
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

Comments
 (0)