slint/internal/compiler/tests/syntax/basic/strings.slint
2022-02-02 10:05:45 +01:00

13 lines
419 B
Text

// Copyright © SixtyFPS GmbH <info@sixtyfps.io>
// SPDX-License-Identifier: (GPL-3.0-only OR LicenseRef-SixtyFPS-commercial)
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}
}