// 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 TestCase := Window {
    if  //
    Foo { }
    //  ^error{expected ':'}
    //  ^^error{Parse error}
  }
//^error{Parse error: expected a top-level item such as a component, a struct, or a global}
