summaryrefslogtreecommitdiff
path: root/tests/semantic/with-null.vala
blob: dd108b256d28b830a22839096824b0f2ebb499af (plain)
1
2
3
4
5
6
7
8
9
10
11
12
class Foo {
    public int i;
}

void main () {
    Foo? f = null;
    Process.exit (0);

    with (f) {
        i = 7;
    }
}