blueprint-compiler/variant-test.blp
2024-12-24 08:50:37 -05:00

16 lines
No EOL
422 B
Text

using Gtk 4.0;
$BlueprintTestObject {
// test-one: variant<"s">("one");
test-zero: variant<"b">(true);
test-one: variant<"s">("one");
test-two: variant<"i">(2);
test-three: variant<"(ii)">((3, 4));
test-four: variant<"ai">([5, 6]);
test-five: variant<"{sv}">({"key", <"value">});
test-six: variant<"a{ss}">({
"GLib": "2.24",
"Gtk": "4.16"
});
test-seven: variant<"ams">([just "2", nothing]);
}