kotlin-spec
kotlin-spec copied to clipboard
Kotlin Language Specification:
https://maven.vorpal-research.science/ https://maven.polytech.vorpal-research.science/
As of now, section 8.21 "Call and property access expressions" — and subsection 8.21.2 "Callable references" specifically — both imply that left-hand-side argument of the reference operator `::` can only...
Could you explain the purpose of modes stack size checking before `popMode()`? https://github.com/Kotlin/kotlin-spec/blob/091d4216cf2c015143e49978d1c43a204e26d967/grammar/src/main/antlr/KotlinLexer.g4#L44 Is this a workaround for more reliable error handling if the first open `LCURL` is missed? Is...
There's no need to use "irregardless" when we have "regardless". (I'm actually just trying to trigger a build failure without changing any of the moving parts, so I just made...
* Specify the scope for enum entries, as they kinda live in a pseudo-static scope for the [OR](https://kotlinlang.org/spec/overload-resolution.html#call-with-an-explicit-type-receiver) and are considered as pseudo-properties * Describe the discrimination of objects compared...
After their redesign w.r.t. https://youtrack.jetbrains.com/issue/KT-44866
For additional context, see https://youtrack.jetbrains.com/issue/KT-23727
Exhibit 1: ```kotlin package foo fun interface Callback { fun doit(): Unit } fun foo(cb: () -> Unit) {} // (1) fun foo(cb: Callback) {} // (2) fun test() {...
https://youtrack.jetbrains.com/issue/KT-28932#focus=Comments-27-5169515.0-0 Function parameters are a little bit weird: they're obviously in the scope of a function, but their defaults a little bit different to the scope of the function, and...
The doc team expressed an idea to remove grammar from language documentation completely and just provide a link to the spec. This involves translating (and maybe rewriting to support the...