Releases: dwickern/scala-nameof
Releases · dwickern/scala-nameof
v4.0.0
v3.0.0
- Adds support for compile-time constants
println(nameOf(java.lang.Integer.MAX_VALUE))
// compiles to:
println("MAX_VALUE")
- APIs now return compile-time constants, which allows them to be used in annotations:
@Resource(name = nameOfType[SomeClass])
class SomeClass
// compiles to:
@Resource(name = "SomeClass")
class SomeClass