TeaWeb/tools/trgen/test/test_01.ts

27 lines
413 B
TypeScript

function tr(message: string) : string {
console.log("Message: " + message);
return message;
}
const x = tr("yyy");
function y() {
const y = tr(tr("yyy"));
}
console.log("XXX: " + tr("XXX"));
console.log("YYY: " + tr("YYY"));
var z = 1 + 2 + 3;
debugger;
debugger;
debugger;
debugger;
const zzz = true ? "yyy" : "bbb";
const zy = "";
debugger;
debugger;
debugger;
debugger;
const { a } = {a : ""};