// 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 (true false) : Rectangle { }
//           ^error{Syntax error: expected '\)'}
//           ^^error{expected ':'}
//                ^^^error{Parse error}
    Foo { }
  }
