[Issue 19687] New: Wrong error for overloaded opDispatch + UFCS with non-existing function
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Tue Feb 19 15:08:09 UTC 2019
https://issues.dlang.org/show_bug.cgi?id=19687
Issue ID: 19687
Summary: Wrong error for overloaded opDispatch + UFCS with
non-existing function
Product: D
Version: D2
Hardware: All
OS: All
Status: NEW
Keywords: diagnostic
Severity: minor
Priority: P5
Component: dmd
Assignee: nobody at puremagic.com
Reporter: dlang-bugzilla at thecybershadow.net
///////////////////// test.d /////////////////////
struct S
{
void opDispatch(string name)() {}
void opDispatch(string name)(string value) { }
}
unittest
{
S n;
n.foo = "".nonexisting();
}
//////////////////////////////////////////////////
Compiler output:
test.d(10): Error: no property foo for type S
Looks like a regression in 2.064, before which the error message correctly
mentioned "nonexisting".
--
More information about the Digitalmars-d-bugs
mailing list