aboutsummaryrefslogtreecommitdiff
path: root/src/types.cpp
diff options
context:
space:
mode:
authorJeroen van Rijn <Kelimion@users.noreply.github.com>2025-05-03 22:31:01 +0200
committerJeroen van Rijn <Kelimion@users.noreply.github.com>2025-05-03 22:31:01 +0200
commitc96d8237ba1dfcc0db455bb8652ea7d8a947f817 (patch)
treeca90d0047a41aab79313e5a86c8e156c51e9cc2a /src/types.cpp
parent9681d88cd3d801f56456bdbe91fe437ebcda96cb (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/types.cpp')
0 files changed, 0 insertions, 0 deletions