eed3si9n / scalaxb

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

avoid `enum` name #610

Closed xuwei-k closed 1 year ago

xuwei-k commented 1 year ago

prepare Scala 3

som-snytt commented 1 year 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