summary refs log tree commit diff
path: root/tests/pracownia2/error/111_variables_nested_scope_while.xi
diff options
context:
space:
mode:
authorPaweł Dybiec <pdybiec@stud.cs.uni.wroc.pl>2018-12-09 18:57:17 +0100
committerPaweł Dybiec <pdybiec@stud.cs.uni.wroc.pl>2018-12-09 18:57:17 +0100
commit21952240e9a785713351ca336e11df498480f905 (patch)
treed61e33c910adae94b5cde0b2d3ffee13aa8062ee /tests/pracownia2/error/111_variables_nested_scope_while.xi
parentInitial code for translator (diff)
Tests
Diffstat (limited to 'tests/pracownia2/error/111_variables_nested_scope_while.xi')
-rw-r--r--tests/pracownia2/error/111_variables_nested_scope_while.xi9
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/pracownia2/error/111_variables_nested_scope_while.xi b/tests/pracownia2/error/111_variables_nested_scope_while.xi
new file mode 100644
index 0000000..b0d1936
--- /dev/null
+++ b/tests/pracownia2/error/111_variables_nested_scope_while.xi
@@ -0,0 +1,9 @@
+test()
+{
+    x:int
+    while true {
+        x:bool
+    } 
+}
+//@PRACOWNIA
+//@should_not_typecheck