www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 16461] New: Using the fully qualified type of an object


          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 puremagic.com
          Reporter: gooberman 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

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


module thismodule;

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

Sep 02 2016