August 07, 2005 [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 |
Copyright © 1999-2021 by the D Language Foundation