Spin-off from issue 16238.
----
void main() { startsWith!funTemplate(); }
enum e = is(typeof(funTemplate()));
void startsWith(alias pred)() { pred(); }
void funTemplate()() { fun(); }
deprecated void fun() {}
----
dmd does not print a deprecation message about fun here. If the e line is removed, the message gets printed.
When compiling with -de, the deprecation message becomes visible and compilation fails.
Comment #1 by robert.schadek — 2024-12-13T18:48:52Z