Multiple functions, same signature

Jacob Carlborg doob at me.com
Wed Jul 11 16:21:26 UTC 2018


On 2018-07-11 17:58, Luís Marques wrote:
> I was surprised to find out today that this compiles:
> 
> void foo() {}
> void foo() {}
> void main() {}
> 
> Is it a bug, or just a weird design decision? "alphaglosined" on IRC 
> seemed to think it was a regression. Please confirm, so that I can file 
> a bug, or understand the design decision rationale.

You'll get an error if you call "foo".

-- 
/Jacob Carlborg


More information about the Digitalmars-d mailing list