mirror of
https://github.com/slint-ui/slint.git
synced 2025-09-30 05:44:52 +00:00

Since some lines may produce multiple warnings/errors, the regex supports now multiple carets, which indicates the number of lines to walk back. This is a bit hacky, but it works :-)
35 lines
1.4 KiB
Text
35 lines
1.4 KiB
Text
/* LICENSE BEGIN
|
|
This file is part of the SixtyFPS Project -- https://sixtyfps.io
|
|
Copyright (c) 2020 Olivier Goffart <olivier.goffart@sixtyfps.io>
|
|
Copyright (c) 2020 Simon Hausmann <simon.hausmann@sixtyfps.io>
|
|
|
|
SPDX-License-Identifier: GPL-3.0-only
|
|
This file is also available under commercial licensing terms.
|
|
Please contact info@sixtyfps.io for more information.
|
|
LICENSE END */
|
|
SuperSimple := Rectangle {
|
|
property<duration> p1: 3s + 1ms;
|
|
// ^warning{Properties of type duration are not supported yet for public API. The property will not be exposed.}
|
|
property<int> p2: 3s + 1;
|
|
// ^error{Cannot convert float to duration}
|
|
property<int> p3: 3s - 1;
|
|
// ^error{Cannot convert float to duration}
|
|
property<int> p4: 3 / 1ms;
|
|
// ^error{Cannot convert duration to float}
|
|
|
|
property<duration> p5: 3ms * 1;
|
|
// ^warning{Properties of type duration are not supported yet for public API. The property will not be exposed.}
|
|
property<duration> p6: 3ms * 1s;
|
|
// ^error{Cannot convert duration to float}
|
|
|
|
// ^^^warning{Properties of type duration are not supported yet for public API. The property will not be exposed.}
|
|
|
|
property<int> p7: "hello" * 1;
|
|
// ^error{Cannot convert string to float}
|
|
|
|
property<int> p8: 1 + "hello" + 1;
|
|
// ^error{Cannot convert string to float}
|
|
|
|
|
|
}
|
|
|