- Deprecate @compact use for comparison. Old behaviour is enabled using --use-old-compact-eq.

- Switch available for types implementing `@operator(==)`.
- `Type.is_eq` is now true for types with `==` overload.
- Functions being tested for overload are now always checked before test.
- Compile time indexing at compile time in a $typeof was no considered compile time.
This commit is contained in:
Christoffer Lerno
2025-08-14 15:53:35 +02:00
parent 076ef187cb
commit 85dc9c45ab
12 changed files with 117 additions and 24 deletions

View File

@@ -3573,6 +3573,7 @@ MEMCMP:
case TYPE_UNION:
case TYPE_STRUCT:
case TYPE_BITSTRUCT:
assert(compiler.build.old_compact_eq);
if (array_base->decl->attr_compact) goto MEMCMP;
break;
case TYPE_POISONED: