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

global Singleton := {
    callback init;
//  ^error{A global component cannot have an 'init' callback}
    init => { debug("nope"); }
//  ^error{A global component cannot have an 'init' callback}
}

export Test := Rectangle {
    callback init;
//           ^error{Cannot override callback 'init'}
}
