[Issue 11522] New: mixing template mixins of template functions creates issues for dmd

d-bugmail at puremagic.com d-bugmail at puremagic.com
Fri Nov 15 13:36:23 PST 2013


https://d.puremagic.com/issues/show_bug.cgi?id=11522

           Summary: mixing template mixins of template functions creates
                    issues for dmd
           Product: D
           Version: D2
          Platform: x86
        OS/Version: Windows
            Status: NEW
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: nobody at puremagic.com
        ReportedBy: maidenphil at hotmail.com


--- Comment #0 from Phil Lavoie <maidenphil at hotmail.com> 2013-11-15 13:36:22 PST ---
mixin template innerMixin() {

  void someFunc( string s )() if( s == "tata" ) {

  }

}

mixin template outerMixin() {

  //If you comment out this function, it compiles and work.
  void someFunc( string s )() if( s == "toto" ) {

  }


  mixin innerMixin;

}

void main( string[] args ) {

  mixin outerMixin;

  static assert( __traits( compiles, mixin( "someFunc!\"tata\"()" ) ) ); //Does
not pass.
}

Shouldn't it work? Version is 2.064

-- 
Configure issuemail: https://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------


More information about the Digitalmars-d-bugs mailing list