// Copyright © SixtyFPS GmbH // SPDX-License-Identifier: GPL-3.0-only OR LicenseRef-Slint-Royalty-free-2.0 OR LicenseRef-Slint-Software-3.0 export component Foo { property m1: mod(4); // ^error{Needs 2 arguments} property m2: mod(4, 5, 5); // ^error{Needs 2 arguments} property m3: mod("455", "465"); // ^error{Cannot convert string to float} // ^^error{Cannot convert string to float} property m4: mod(455, "465"); // ^error{Cannot convert string to float} property m5: mod(45px, 4); // ^error{Cannot convert float to length. Use an unit, or multiply by 1px to convert explicitly} property m6: mod(45px, 4ms); // ^error{Cannot convert duration to length} property m7: mod(5, 4ms); // ^error{Cannot convert float to duration. Use an unit, or multiply by 1ms to convert explicitly} property m8: (5).mod(4ms); // ^error{Cannot convert float to duration. Use an unit, or multiply by 1ms to convert explicitly} property m9: 5ms.mod(4); // ^error{Cannot convert float to duration. Use an unit, or multiply by 1ms to convert explicitly} property a1: abs(); // ^error{Needs 1 argument} property a2: abs(4, 5, 5); // ^error{Needs 1 argument} property a3: abs(1, 2); // ^error{Needs 1 argument} property a4: abs("465"); // ^error{Cannot convert string to float} property a5: abs(45px); // ^error{Cannot convert length to string. Divide by 1px to convert to a plain number} property a6: abs; // ^error{Builtin function must be called. Did you forgot the '()'?} property a7: (-21).abs; // ^error{Member function must be called. Did you forgot the '()'?} property sq1: 1.0.sqrt(1); // ^error{The callback or function expects 0 arguments, but 1 are provided} property sq2: 1.0.sqrt; // ^error{Member function must be called. Did you forgot the '()'?} }