Kotlin / kotlin-spec

Kotlin Language Specification:
https://kotlinlang.org/spec
Apache License 2.0
387 stars 80 forks source link

Set of restricted chars for JVM #86

Closed koperagen closed 3 years ago

koperagen commented 3 years ago

I've noticed that despite following statement in syntax.md#identifiers, Kotlin JVM compiler is fine with escaped identifiers with '(' in it. I've also found this checker which seems to exactly follow JVM specification

Note: for example, the following characters are not allowed in identifiers used as declaration names on the JVM platform even when escaped due to JVM restrictions: (, ), {, }, [, ], .

belyaev-mikhail commented 3 years ago

Thanks for noticing! Fixed in develop 03ec014