www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 15177] New: mixin + traits issue with 2.069 beta 1


          Issue ID: 15177
           Summary: mixin + traits issue with 2.069 beta 1
           Product: D
           Version: D2
          Hardware: x86_64
                OS: Linux
            Status: NEW
          Severity: enhancement
          Priority: P1
         Component: dmd
          Assignee: nobody puremagic.com
          Reporter: trikko katamail.com

Created attachment 1555
  --> https://issues.dlang.org/attachment.cgi?id=1555&action=edit
Source code. Test it running 'dub'.

I get a strange error with dmd 2.069 b1.
I can't understand what happen exactly but apparently traits allMember return
an unrelated symbol.

I reduced code using dustmite and manually. 

Attached code compile for me using dmd 2.068 on linux x64. 

Using dmd 2.069 b1 it fails:
source/tests/utils.d-mixin-13(13): Error: undefined identifier

Oct 08 2015