Bug 12988 – Diagnostic for wrong 'this' prefix when matching parameter is found should improve

Status
NEW
Severity
enhancement
Priority
P4
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2014-06-25T11:43:51Z
Last change time
2024-12-13T18:21:43Z
Keywords
bootcamp, diagnostic
Assigned to
No Owner
Creator
Andrej Mitrovic
Moved to GitHub: dmd#18841 →

Comments

Comment #0 by andrej.mitrovich — 2014-06-25T11:43:51Z
----- class F { void test(string str) { this.str = ""; } } void main() { } ----- $ dmd test.d > test.d(5): Error: no property 'str' for type 'test.F' The compiler should try to detect whether 'str' is also a parameter name, and in this case emit something like: $ dmd test.d > test.d(5): Error: no property 'str' for type 'test.F', did you mean parameter 'str'?
Comment #1 by robert.schadek — 2024-12-13T18:21:43Z
THIS ISSUE HAS BEEN MOVED TO GITHUB https://github.com/dlang/dmd/issues/18841 DO NOT COMMENT HERE ANYMORE, NOBODY WILL SEE IT, THIS ISSUE HAS BEEN MOVED TO GITHUB