Reputation: 22190
How does one refer to a Java package including object in the name such as com.example.object in Scala?
Scala treats object as a reserved word and complains.
Upvotes: 3
Views: 643
Reputation: 1741
Put the reserved word inside backticks, like this:
com.example.`object`
Upvotes: 9