From 90b8cb5439627eb82ea37cd1659f9c5ba1721fdd Mon Sep 17 00:00:00 2001 From: RayPals Date: Mon, 1 Jun 2026 00:54:51 +0200 Subject: [PATCH] Add examples/type_hardening.claro from Claro v1.17.26 zip --- examples/type_hardening.claro | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 examples/type_hardening.claro diff --git a/examples/type_hardening.claro b/examples/type_hardening.claro new file mode 100644 index 0000000..bb3b061 --- /dev/null +++ b/examples/type_hardening.claro @@ -0,0 +1,21 @@ +SAY "Claro type example" + +SET score NUMBER 10 +SET name TEXT "Jon" +SET ready YESNO YES + +TYPE OF score AS scoreType +TYPE OF name AS nameType +TYPE OF ready AS readyType + +SAY scoreType +SAY nameType +SAY readyType + +CHECK TYPE score IS NUMBER +CHECK TYPE name IS TEXT +CHECK TYPE ready IS YESNO + +NEW Player player +TYPE OF player AS playerType +SAY playerType