https://kotlinlang.org logo
Title
m

mzgreen

03/31/2017, 8:01 AM
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

mg6maciej

03/31/2017, 8:05 AM
m

mg6maciej

03/31/2017, 8:30 AM
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