www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 15825] New: dmd's -transition=checkimports reports a false


          Issue ID: 15825
           Summary: dmd's -transition=checkimports reports a false
                    positive for tuple __dollar
           Product: D
           Version: D2
          Hardware: All
                OS: All
            Status: NEW
          Severity: blocker
          Priority: P1
         Component: dmd
          Assignee: nobody puremagic.com
          Reporter: code dawg.eu

cat > bug.d << CODE
template anySatisfy(T...)
    alias anySatisfy = T[$ - 1];

alias T = anySatisfy!(int);
dmd -transition=checkimports -c bug
bug.d(3): Deprecation: local import search method found variable
bug.anySatisfy!int.__dollar instead of variable bug.anySatisfy!int.__dollar

This creates an enormous amount of output when compiling a normal library and
renders -transition=checkimports almost unusable.

Mar 23 2016