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