www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 14876] New: Deprecation message is sometimes duplicates

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

          Issue ID: 14876
           Summary: Deprecation message is sometimes duplicates
           Product: D
           Version: D2
          Hardware: All
                OS: All
            Status: NEW
          Keywords: diagnostic
          Severity: minor
          Priority: P1
         Component: dmd
          Assignee: nobody puremagic.com
          Reporter: k.hara.pg gmail.com

Test case:

deprecated class Dep { class Mem {} }

alias X1 = Foo!(Dep[]);     // Line 3
alias X2 = Foo!(Dep[1]);    // Line 4
alias X3 = Foo!(Dep[int]);  // Line 5
alias X4 = Foo!(int[Dep]);  // Line 6
alias X5 = Foo!(Dep*);      // Line 7
alias X6 = Foo!(Dep.Mem);   // Line 8
alias X7 = Foo!(Dep[3..4]); // Line 9

template Foo(T) {}

Current output:

test.d(3): Deprecation: class test.Dep is deprecated
test.d(3): Deprecation: class test.Dep is deprecated
test.d(4): Deprecation: class test.Dep is deprecated
test.d(4): Deprecation: class test.Dep is deprecated
test.d(4): Deprecation: class test.Dep is deprecated
test.d(5): Deprecation: class test.Dep is deprecated
test.d(6): Deprecation: class test.Dep is deprecated
test.d(7): Deprecation: class test.Dep is deprecated
test.d(8): Deprecation: class test.Dep is deprecated
test.d(9): Deprecation: class test.Dep is deprecated
test.d(9): Deprecation: class test.Dep is deprecated
test.d(9): Error: can only slice tuple types, not test.Dep

--
Aug 06 2015