// Copyright © SixtyFPS GmbH <info@slint.dev>
// SPDX-License-Identifier: GPL-3.0-only OR LicenseRef-Slint-Royalty-free-1.2 OR LicenseRef-Slint-commercial

export Demo := Window {
    callback foobar;
    TouchArea {
        clicked => {
            root
//          ^error{'root.foobar' must be called. Did you forgot the '\(\)'\?}
                .foobar
        }
    }
}
