summaryrefslogtreecommitdiff
path: root/tiger-compiler/tests/good/local-vs-global-type.tig
diff options
context:
space:
mode:
Diffstat (limited to 'tiger-compiler/tests/good/local-vs-global-type.tig')
-rw-r--r--tiger-compiler/tests/good/local-vs-global-type.tig10
1 files changed, 10 insertions, 0 deletions
diff --git a/tiger-compiler/tests/good/local-vs-global-type.tig b/tiger-compiler/tests/good/local-vs-global-type.tig
new file mode 100644
index 0000000..9f8483d
--- /dev/null
+++ b/tiger-compiler/tests/good/local-vs-global-type.tig
@@ -0,0 +1,10 @@
+/* local types hide global */
+let
+ type a = int
+in
+ let
+ type a = string
+ in
+ 0
+ end
+end