Kotlin allows to create a package named `case` but...
# announcements
m
Kotlin allows to create a package named
case
but it seems that java does not (or it allows to create a package but it can’t compile files in there because
case
is a keyword). So when I created a
case
package in Kotlin and then tried to compile the project I got the error saying that `expected indentifier in line 1`(package name) in stub class. I guess this is a bug?
m
m
Oh, so it's related to APT.
I actually tried to create class in case package and it worked.
Couldn't reference it from Java tho.
Maybe this is an ideal way to force users to use Kotlin only 😉
👍 1