kotlin-spec
kotlin-spec copied to clipboard
Kotlin Language Specification:
'value' is present in definition of simpleIdentifier but not in IdentifierOrSoftKey
This PR updates several library versions. More importantly, it updates to Kotlin 1.9.10, and recent version of `kotlinx-serialization`. As a result, it moves from the old Kotlin/JS into Kotlin Multiplatform....
Does this grammar file have no relationship with the PSI layer of Kotlin source code anymore?
In the [definition of the transfer function](https://github.com/Kotlin/kotlin-spec/blob/45db7640b161b42e1da754b0755826b3ae9f8e59/docs/src/md/kotlin.core/type-inference.md?plain=1#L77-L138), $\top$ is used for the second element of the type pair as the "default". As far as I understand, $\top$ this is `Any?`...
The text said `foo[0] = bar` is expanded to `foo.set(bar)`, but `foo.set(0, bar)` would be correct.
https://github.com/Kotlin/kotlin-spec/blob/b574dd2866b73e86b0ef57b21b64a8e57b7d19df/docs/build.gradle.kts#L63 CVE-2022-39243 Recommended upgrade version:2.0.5
Subsection 8.6.1 "Exhaustive when expressions" provides a following code example: ```kotlin sealed interface I1 sealed interface I2 sealed interface I3 class D1 : I1, I2 class D2 : I1, I3...