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: nob...@puremagic.com
        ReportedBy: maidenp...@hotmail.com


--- Comment #0 from Phil Lavoie <maidenp...@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: -------

Reply via email to