summaryrefslogtreecommitdiff
path: root/tiger-compiler/tests/type/nil-string.tig
diff options
context:
space:
mode:
Diffstat (limited to 'tiger-compiler/tests/type/nil-string.tig')
-rw-r--r--tiger-compiler/tests/type/nil-string.tig7
1 files changed, 7 insertions, 0 deletions
diff --git a/tiger-compiler/tests/type/nil-string.tig b/tiger-compiler/tests/type/nil-string.tig
new file mode 100644
index 0000000..c8d885e
--- /dev/null
+++ b/tiger-compiler/tests/type/nil-string.tig
@@ -0,0 +1,7 @@
+/* error: string variable instantiated with nil */
+
+let
+ var str: string := nil
+in
+ print(str)
+end