February 19, 2019 [Issue 19687] New: Wrong error for overloaded opDispatch + UFCS with non-existing function | ||||
---|---|---|---|---|
| ||||
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@puremagic.com Reporter: dlang-bugzilla@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". -- |
Copyright © 1999-2021 by the D Language Foundation