slint/internal/compiler/tests/syntax/expressions/strings.slint
2023-07-10 10:12:11 +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-1.1 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}
}