aboutsummaryrefslogtreecommitdiff
path: root/compiler/tests/verifier/type_generic_deep.good
blob: 1523a3d1c5a99342630f4e3c02a4a483bc904ede (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16


typedef list[T] = (
    T^ data,
    list[int]^? x,
);

() test() {
    list[bool] obj;
    
    bool b = obj.data^;
    int i = obj.x?^.data^;
    list[int] inside = obj.x?^;
    list[bool] other = obj;
}