mirror of
https://github.com/c3lang/c3c.git
synced 2026-02-27 12:01:16 +00:00
Shuffle names as <-> to
This commit is contained in:
@@ -15,8 +15,8 @@ fn void any_to_as()
|
||||
{
|
||||
int x = 3;
|
||||
any a = &x;
|
||||
test::eq(a.to(int), 3);
|
||||
test::eq(a.as(int)!!, 3);
|
||||
test::eq(a.as(int), 3);
|
||||
test::eq(a.to(int)!!, 3);
|
||||
}
|
||||
|
||||
fn void test_aliasing()
|
||||
|
||||
Reference in New Issue
Block a user