We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
cat > bug.d << CODE module bug; void func(string) {} template ng() { // renamed selective import isn't a "real" alias import bug : ng = func; } template ok() { import bug : func; // real alias works alias ok = func; } void test() { ok("works"); ng("doesn't work"); } CODE dmd -c bug ---- bug.d(21): Error: template bug.ng cannot deduce function from argument types !()(string), candidates are: bug.d(5): bug.ng()
The text was updated successfully, but these errors were encountered:
Selective imports that aren't renamed don't work either. cat > bug.d << CODE template format() { import std.string : format; } void test() { format(""); } CODE dmd -c bug.d
Sorry, something went wrong.
No branches or pull requests
Martin Nowak (@MartinNowak) reported this on 2014-12-04T00:28:46Z
Transferred from https://issues.dlang.org/show_bug.cgi?id=13814
Description
cat > bug.d << CODE module bug; void func(string) {} template ng() { // renamed selective import isn't a "real" alias import bug : ng = func; } template ok() { import bug : func; // real alias works alias ok = func; } void test() { ok("works"); ng("doesn't work"); } CODE dmd -c bug ---- bug.d(21): Error: template bug.ng cannot deduce function from argument types !()(string), candidates are: bug.d(5): bug.ng()The text was updated successfully, but these errors were encountered: