[Issue 20840] New: No deprecation when using symbol from deprecated selective import

d-bugmail at puremagic.com d-bugmail at puremagic.com
Mon May 18 16:05:48 UTC 2020


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 at puremagic.com
          Reporter: moonlightsentinel at 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;
=============================================

--


More information about the Digitalmars-d-bugs mailing list