Closed
Description
Compiler version
any
Minimized code
Run with -deprecation
import scala.quoted._
@deprecated object A
object Test {
inline def test() = ${testImpl}
def testImpl(using Quotes): Expr[Any] =
import quotes.reflect._
Ref(Symbol.classSymbol("A$").companionModule).asExpr
}
@main def main() =
Test.test()
Output
-- Deprecation Warning: depr2.scala:4:46 ---------------------------------------
4 |
| ^^^^^^^^^^^
| object A is deprecated
Expectation
Point the warning to the callsite., message could also probably be improved