
class Xyzzy : Object {
    public string foo { get; private set; }
    
    public Xyzzy(string foo) {
        this.foo = foo;
    }
}

Xyzzy x(string str) {
    return new Xyzzy(str);
}

void main(string[] args) {
    switch (x("abc").foo) {
        case "abc":
            stdout.printf("found\n");
        break;
        
        default:
            stdout.printf("not found\n");
        break;
    }
}

