summary refs log tree commit diff
path: root/tests/pracownia2/error/107_variables_nested_scope_ifelse.xi
diff options
context:
space:
mode:
Diffstat (limited to 'tests/pracownia2/error/107_variables_nested_scope_ifelse.xi')
-rw-r--r--tests/pracownia2/error/107_variables_nested_scope_ifelse.xi10
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/pracownia2/error/107_variables_nested_scope_ifelse.xi b/tests/pracownia2/error/107_variables_nested_scope_ifelse.xi
new file mode 100644
index 0000000..a7b0cb6
--- /dev/null
+++ b/tests/pracownia2/error/107_variables_nested_scope_ifelse.xi
@@ -0,0 +1,10 @@
+test()
+{
+    x:int
+    if true {
+    } else {
+        x:bool
+    } 
+}
+//@PRACOWNIA
+//@should_not_typecheck