mirror of
https://github.com/c3lang/c3c.git
synced 2026-02-27 12:01:16 +00:00
Removal of any-switches
This commit is contained in:
@@ -15,7 +15,7 @@ fn void test_aliasing()
|
||||
{
|
||||
int x;
|
||||
AnyAlias z = &x;
|
||||
switch (z)
|
||||
switch (z.type)
|
||||
{
|
||||
case int:
|
||||
assert(true);
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user