aboutsummaryrefslogtreecommitdiff
path: root/compiler/tests/verifier/type_any.good
blob: 55a12d2d59dabf29c32838be1296c42aa2473272 (plain)
1
2
3
4
5
6
7
8
9
10
11
12

int i = 123;
int#[3] j = [123,456,789];

any^ a1 = @i;
any^ a2 = @j;

() test()
{
    int x = a1^;
    int y = (a2^ as int#[3])#[2];
}