aboutsummaryrefslogtreecommitdiff
path: root/compiler/tests/backend/optional.good
blob: 922b08d6565a48ad8a000d523ebf6b9ad2446976 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17

() test()
{
    // TODO implement the makeopt operator. it should work similar to a struct literal (except if the value type is a pointer)
    /*var bool? x = makeopt :false;
    x = makeopt :true;
    
    if x == makeopt :false {
    } else if x == makeopt :true {
    }*/
    
    var bool? x;
    
    if x == x {
    }
}