[Issue 16461] New: Using the fully qualified type of an object within its own scope causes an error

via Digitalmars-d-bugs digitalmars-d-bugs at puremagic.com
Fri Sep 2 01:36:12 PDT 2016


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

          Issue ID: 16461
           Summary: Using the fully qualified type of an object within its
                    own scope causes an error
           Product: D
           Version: D2
          Hardware: x86_64
                OS: Windows
            Status: NEW
          Severity: critical
          Priority: P1
         Component: dmd
          Assignee: nobody at puremagic.com
          Reporter: gooberman at gmail.com

This one's quite easy to reproduce, and I can probably work around it with a
small bit of pain. Had to painstakingly reduce code in a mixin/mixin template
combo by hand to get it down to this minimal case, which is another issue
entirely...

Output: Error: undefined identifier 'Test' in package 'thismodule'

Code:

module thismodule;

struct Test
{
  pragma( msg, thismodule.Test.stringof );
}

--


More information about the Digitalmars-d-bugs mailing list