aboutsummaryrefslogtreecommitdiff
path: root/tests/variable/type/buildfile
diff options
context:
space:
mode:
Diffstat (limited to 'tests/variable/type/buildfile')
-rw-r--r--tests/variable/type/buildfile21
1 files changed, 21 insertions, 0 deletions
diff --git a/tests/variable/type/buildfile b/tests/variable/type/buildfile
new file mode 100644
index 0000000..372b0ad
--- /dev/null
+++ b/tests/variable/type/buildfile
@@ -0,0 +1,21 @@
+# Variable typing.
+#
+[string] str1 = bar
+str1 =+ foo
+str1 += baz
+print $str1
+
+str2 = bar
+[string] str2 =+ foo
+str2 += baz
+print $str2
+
+#[string] str3 = foo
+#[bool] str3 = false # error: changing str3 type from string to bool
+
+#[bool string] str3 = foo # error: multiple variable types: bool, string
+
+#[junk] jnk = foo # error: unknown variable attribute junk
+
+
+./: