eed3si9n / scalaxb

scalaxb is an XML data binding tool for Scala.
http://scalaxb.org/
MIT License
332 stars 154 forks source link

avoid `enum` name #610

Closed xuwei-k closed 10 months ago

xuwei-k commented 10 months ago

prepare Scala 3

som-snytt commented 10 months ago

psa

scala> def f(@deprecatedName("enum") y: Int) = y
def f(y: Int): Int

scala> f(enum=42)
             ^
       warning: the parameter name enum is deprecated: use y instead
val res1: Int = 42

scala> val enum = 42
           ^
       warning: Wrap `enum` in backticks to use it as an identifier, it will become a keyword in Scala 3. [quickfixable]
val enum: Int = 42