[Issue 13192] New: Repeated import qualifiers sometimes go unchecked.

via Digitalmars-d-bugs digitalmars-d-bugs at puremagic.com
Tue Jul 22 11:49:56 PDT 2014


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

          Issue ID: 13192
           Summary: Repeated import qualifiers sometimes go unchecked.
           Product: D
           Version: D2
          Hardware: x86
                OS: Windows
            Status: NEW
          Severity: minor
          Priority: P1
         Component: DMD
          Assignee: nobody at puremagic.com
          Reporter: paul.d.anderson at comcast.net

Doubled (or tripled, etc.) import qualifiers are accepted in some cases.

auto m = std.math.std.math.std.math.abs(-32.33); // no error

std.stdio.std.stdio.writeln("123"); // no error

auto fmt = std.array.std.array.appender!(string)(); // no error

auto ms = std.mathspecial.std.mathspecial.gamma(0.5); // error "undefined
identifier mathspecial"

import std.stdio.std.stdio : writeln; // error "module stdio is in file
'std/stdio/std' which cannot be read"

--


More information about the Digitalmars-d-bugs mailing list