Removal of any-switches

This commit is contained in:
Christoffer Lerno
2025-03-03 15:02:25 +01:00
parent 13f824e349
commit 0925010c07
13 changed files with 101 additions and 521 deletions

View File

@@ -15,7 +15,7 @@ fn void test_aliasing()
{
int x;
AnyAlias z = &x;
switch (z)
switch (z.type)
{
case int:
assert(true);

View File

@@ -18,7 +18,7 @@ fn void switch_subtyping()
Foo f = {};
f.z = 123;
any x = &f;
switch (x)
switch (x.type)
{
case int:
assert(false);
@@ -27,7 +27,7 @@ fn void switch_subtyping()
default:
assert(false);
}
switch (x)
switch (x.type)
{
case int:
assert(false);
@@ -36,7 +36,7 @@ fn void switch_subtyping()
default:
assert(false);
}
switch (x)
switch (x.type)
{
case int:
assert(false);