Bug 16239 – is(typeof(foo)) hides deprecation message about foo

Status
NEW
Severity
normal
Priority
P3
Component
dmd
Product
D
Version
D2
Platform
x86_64
OS
Linux
Creation time
2016-07-05T15:09:47Z
Last change time
2024-12-13T18:48:52Z
Keywords
diagnostic
Assigned to
No Owner
Creator
ag0aep6g
Moved to GitHub: dmd#19155 →

Comments

Comment #0 by ag0aep6g — 2016-07-05T15:09:47Z
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
THIS ISSUE HAS BEEN MOVED TO GITHUB https://github.com/dlang/dmd/issues/19155 DO NOT COMMENT HERE ANYMORE, NOBODY WILL SEE IT, THIS ISSUE HAS BEEN MOVED TO GITHUB