Are classnames enclosed in backticks permitted in ...
# announcements
s
Are classnames enclosed in backticks permitted in Kotlin? This example compiles fine with 1.3.60 but Android Studio complains that
Class name may only contain letters and digits
o
At least, it is permitted in common JVM, but JavaScript or other VM (like Android JVM) may have their own restrictions
i
@Sergey Chelombitko Yes, class names enclosed with backticks are permitted in Kotlin, but names like this don't follow the recommended naming conventions. You can disable or change the severity of this inspection in
Preferences | Editor | Inspections | Kotlin | Naming conventions | Class naming convention
s
Try to avoid it as there are platform restrictions to what they can contain.. ie they still have to end up as a <classname>.class on the disk. I have had a bunch of weird errors from the compiler while doing this