Improve opOpAssign error messages (#20800)

This commit is contained in:
Dennis 2025-01-30 08:04:17 +01:00 committed by GitHub
parent 28bc5c6e74
commit 06e0096aca
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
7 changed files with 267 additions and 196 deletions

View file

@ -53,7 +53,7 @@ app.d(1): perhaps define `auto opSlice(int lower, string upper) {}` for `
*/
---
When overloading binary operators, and `opBinary` or `opBinaryRight` is missing or doesn't match,
When overloading binary operators, and `opBinary`, `opBinaryRight` or `opOpAssign` is missing / fails to instantiate,
the error message now points out the problem:
---