1 2 3 4 5 6
new (() => String) { @deprecated("don't use hello") def hello() = "hello" def apply() = hello() }