[Issue 11058] New: deprecated message doesn't work with selective imports
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Tue Sep 17 10:43:20 PDT 2013
http://d.puremagic.com/issues/show_bug.cgi?id=11058
Summary: deprecated message doesn't work with selective imports
Product: D
Version: unspecified
Platform: All
OS/Version: All
Status: NEW
Severity: normal
Priority: P2
Component: DMD
AssignedTo: nobody at puremagic.com
ReportedBy: code at dawg.eu
--- Comment #0 from Martin Nowak <code at dawg.eu> 2013-09-17 10:43:19 PDT ---
cat > foo.d << CODE
enum bar = 0;
CODE
cat > bug.d << CODE
deprecated("msg") import foo : bar;
enum baz = bar;
CODE
cat > nobug.d << CODE
static import foo;
deprecated("msg") alias bar = foo.bar;
enum baz = bar;
CODE
dmd -c -o- bug.d
dmd -c -o- nobug.d
----
Using deprecation messages for selective imports doesn't work.
The compiler will only warn about the deprecation but misses the message.
Creating an alias by hand, as shown in nobug.d, works though.
--
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
More information about the Digitalmars-d-bugs
mailing list