Super easy struct construction question that I'm embarrassed to ask.
user1234
user1234 at 12.de
Mon Jan 13 10:32:39 UTC 2025
On Thursday, 9 January 2025 at 23:44:52 UTC, WhatMeWorry wrote:
>> You misspelled the parameter name 'locaction', so your
>> assignment in the constructor is a no-op:
>>
>> ```
>> this.location = this.location
>> ```
>
>
> Thanks. I was starting to question my sanity.
That error is so classic that eventually a well know linter
detects it: https://pvs-studio.com/en/docs/warnings/v3196/
Sure that's not a D linter however.
More information about the Digitalmars-d-learn
mailing list