[Bug 105] New: abiguity for opCall

d-bugmail at puremagic.com d-bugmail at puremagic.com
Thu Apr 13 16:36:36 PDT 2006


           Summary: abiguity for opCall
           Product: D
           Version: 0.150
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: bugzilla at digitalmars.com
        ReportedBy: benoit at tionex.de

While a function works fine, opCall does not:

import std.stdio;

template T( int i ){
    public void foo(){
        writefln( "%d", i );
    public void opCall(){ // line 9
        writefln( "%d", i );

class C{

class C1 : C {
    mixin T!( 1 ) t1;
    mixin T!( 2 ) t2;

void main(){
    C1 c1 = new C1;
    c1.t1(); // this causes the error

snippets/opCall.d(9): function snippets.opCall.C1.mixin T!(1);
.opCall conflicts with snippets.opCall.C1.mixin T!(2);
.opCall at snippets/opCall.d(9)


More information about the Digitalmars-d-bugs mailing list