blob: e9a97efb53ce596d2f6c5ba698d5c11fadbff316 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
Project {
property string throwType
property bool dummy: {
if (throwType === "bool")
throw true;
if (throwType === "int")
throw 43;
if (throwType === "string")
throw "an error";
if (throwType === "list")
throw ["an", "error"];
if (throwType === "object")
throw { result: "crash", reason: "overheating" };
throw "type missing";
}
}
|