Function overloading between modules

JN 666total at wp.pl
Thu Feb 22 21:12:45 UTC 2018


Is this expected behaviour?

bar.d
---
void foo(string s)
{
}


app.d
---

import std.stdio;
import bar;

void foo(int x)
{
}

void main()
{
   foo("hi");
};


===
Error: function app.foo (int x) is not callable using argument 
types (string)


More information about the Digitalmars-d-learn mailing list