- Support untyped second argument for operator overloading.

- Distinct versions of builtin types ignore @operator overloads #2204.
- @operator macro using untyped parameter causes compiler segfault #2200.
- Add comparison with `==` for ZString types.
This commit is contained in:
Christoffer Lerno
2025-06-13 17:12:39 +02:00
parent 82491a6f85
commit e0237096d6
8 changed files with 201 additions and 59 deletions

View File

@@ -190,6 +190,14 @@ fn void test_treplace()
assert(test.treplace("Never", "Always") == "Befriend some dragons?");
}
fn void test_zstring()
{
String test = "hello";
ZString test2 = "hello";
ZString test3 = "bye";
assert(test.zstr_tcopy() == test2);
assert(test.zstr_tcopy() != test3);
}
fn void test_replace()
{
String test = "Befriend some dragons?";