--- Comment #1 from Andrej Mitrovic <> 2010-12-30 
14:12:29 PST ---

That example code is completely wrong, please diregard it. This is the proper
one which should work but doesn't:

import std.stdio : writeln;
import foo;     // void fun(int x)
import bar;     // void fun(long x)

void main()
    auto y = 10L;
    fun(y);                 // ok, goes to

    writeln(typeid(10L));   // writes long
    fun(10L);               // error: conflicts with

void fun(int x)

void fun(long x)

This only happens with literals and when the two fun methods are defined in
separate modules. If the fun methods are defined directly in main(), there's no

Configure issuemail:
------- You are receiving this mail because: -------

Reply via email to