[Issue 14145] New: opDispatch should be considered over UFCS
via Digitalmars-d-bugs
digitalmars-d-bugs at puremagic.com
Sat Feb 7 18:18:19 PST 2015
https://issues.dlang.org/show_bug.cgi?id=14145
Issue ID: 14145
Summary: opDispatch should be considered over UFCS
Product: D
Version: D2
Hardware: x86_64
OS: Mac OS X
Status: NEW
Severity: critical
Priority: P1
Component: DMD
Assignee: nobody at puremagic.com
Reporter: timothee.cour2 at gmail.com
dmd -c -o- main.d
main.d(7): Error: function main.foo () is not callable using argument types (A)
----
void foo(){}
struct A{
auto opDispatch(string op)() {
writeln;
}
}
void test(){
A.init.foo();
}
--
More information about the Digitalmars-d-bugs
mailing list