www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [variadics] ambiguous call not detected

ambiguous call not detected

import std.stdio;
class Foo {
 this( int x, int y){ writefln( "two parm");};
 this( int x ){ writefln( "one parm");};
}
void test( Foo f ...){}
void test( int x, Foo f ...){}
void main(){
  test( 1, 1);
}


-manfred
Aug 07 2005