digitalmars.D.bugs - [variadics] ambiguous call not detected
- Manfred Nowak (12/12) Aug 07 2005 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








Manfred Nowak <svv1999 hotmail.com>