Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
Scala 无法访问:
// Groovy class Outer { enum Enum { VALUE } }
需要做什么才能让 Scala 访问枚举?
与 Java 不同,Groovy中的枚举不是隐式静态的。以下使其可从 Scala 访问:
// Groovy class Outer { static enum Enum { VALUE } }