slint/internal/compiler/tests/syntax/expressions/strings.slint
Aurindam Jana 9a3aa265d5
Update Royalty-free license (#5257)
Add clarification that Application may not expose Slint APIs.
2024-05-31 10:53:19 +02:00

13 lines
456 B
Text

// Copyright © SixtyFPS GmbH <info@slint.dev>
// SPDX-License-Identifier: GPL-3.0-only OR LicenseRef-Slint-Royalty-free-2.0 OR LicenseRef-Slint-commercial
export Test := Window {
Text {
text: "hel\lo";
// ^error{Cannot parse string literal}
}
property <string> p1: "hello\"world";
property <string> p2: "hello\\";
property <string> p3: "hello\world";
// ^error{Cannot parse string literal}
}