Add supplemental location error for missing operator overload

This commit is contained in:
Dennis Korpel 2024-10-01 21:10:57 +02:00 committed by The Dlang Bot
parent 8c64740e6e
commit 4ccb01fde5
3 changed files with 33 additions and 20 deletions

View file

@ -6,6 +6,7 @@ fail_compilation/fail_arrayexp.d(25): Error: cannot use `[]` operator on express
fail_compilation/fail_arrayexp.d(26): Error: static array of `const(int)[]` with multiple lengths not allowed
fail_compilation/fail_arrayexp.d(27): Error: only one index allowed to index `string`
fail_compilation/fail_arrayexp.d(28): Error: no `[]` operator overload for type `U`
fail_compilation/fail_arrayexp.d(16): `fail_arrayexp.U` declared here
fail_compilation/fail_arrayexp.d(29): Error: only one index allowed to index `(int, string)`
---
*/