diff options
| author | Jeroen van Rijn <Kelimion@users.noreply.github.com> | 2025-05-03 22:31:01 +0200 |
|---|---|---|
| committer | Jeroen van Rijn <Kelimion@users.noreply.github.com> | 2025-05-03 22:31:01 +0200 |
| commit | c96d8237ba1dfcc0db455bb8652ea7d8a947f817 (patch) | |
| tree | ca90d0047a41aab79313e5a86c8e156c51e9cc2a /src/entity.cpp | |
| parent | 9681d88cd3d801f56456bdbe91fe437ebcda96cb (diff) | |
Clarify error messages for types that aren't simply comparable.
Previously, it implied that these are different types:
```
W:/Scratch/scratch.odin(17:5) Error: Cannot compare expression, operator '==' not defined between the types 'Handle_Map($T=u32, $HT=u32, $Max=10000)' and 'Handle_Map($T=u32, $HT=u32, $Max=10000)'
if m == {} {
^~~~~~^
```
Now:
```
W:/Scratch/scratch.odin(20:5) Error: Cannot compare expression. Type 'Handle_Map($T=u32, $HT=u32, $Max=10000)' is not simply comparable, so operator '==' is not defined for it.
if m == {} {
^~~~~~^
```
Diffstat (limited to 'src/entity.cpp')
0 files changed, 0 insertions, 0 deletions