Issue 9631 - Error message not using fully qualified name (part 3)#7448
Issue 9631 - Error message not using fully qualified name (part 3)#7448dlang-bot merged 1 commit intodlang:masterfrom
Conversation
|
Thanks for your pull request, @ntrel! We are looking forward to reviewing it, and you should be hearing from a maintainer soon. Some tips to help speed things up:
Bear in mind that large or tricky changes may require multiple rounds of review and revision. Please see CONTRIBUTING.md for more information. Bugzilla references
|
test/fail_compilation/bug9631.d
Outdated
|
|
||
| tem!().S[1] at; | ||
| S[1] af = cast(S[1])at; | ||
| auto st = cast(tem!().S[])af; |
There was a problem hiding this comment.
Actually, you probably want to fix the error message on line 1590 as well: https://github.com/ntrel/dmd/blob/4e86c34dbb0e2032d0dd55bbc30062b9950475dc/src/dmd/dcast.d#L1590
There was a problem hiding this comment.
Using af[] doesn't cause an error.
The sizes don't line up error only happens when if (tob.ty == Tarray && t1b.ty == Tsarray) is hit, a few lines before, which IIUC would mean toChars is never the same for each type (one is a static array, one not), so a fix is redundant.
There was a problem hiding this comment.
Or this simple toAutoQualChars fix is redundant rather. It would be good to show the qualification for S[1] vs S[] too, but I'm not sure how to best to do that. Same goes for S() and S, expression vs type, toChars is different.
Disambiguate cast error messages.
Disambiguate cast error messages.
@JinShil another follow up from #7405.