www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 20840] New: No deprecation when using symbol from deprecated

https://issues.dlang.org/show_bug.cgi?id=20840

          Issue ID: 20840
           Summary: No deprecation when using symbol from deprecated
                    selective import
           Product: D
           Version: D2
          Hardware: All
                OS: All
            Status: NEW
          Severity: normal
          Priority: P1
         Component: dmd
          Assignee: nobody puremagic.com
          Reporter: moonlightsentinel disroot.org

dmd fails to issue deprecations for deprecated selective imports of certain
symbols, e.g. as found in this PR (https://github.com/dlang/phobos/pull/7487).

Reduced test case:

=============================================
module a;

import b;

alias Types = AliasSeq!(int); // Should issue deprecation

=============================================

module b;

deprecated("Please import std.meta.AliasSeq directly!")
public import std.meta : AliasSeq;
=============================================

--
May 18 2020