diff options
Diffstat (limited to 'tests/pracownia2/error/082_function_missing_return_while_return.xi')
-rw-r--r-- | tests/pracownia2/error/082_function_missing_return_while_return.xi | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/pracownia2/error/082_function_missing_return_while_return.xi b/tests/pracownia2/error/082_function_missing_return_while_return.xi new file mode 100644 index 0000000..b7dd972 --- /dev/null +++ b/tests/pracownia2/error/082_function_missing_return_while_return.xi @@ -0,0 +1,8 @@ +f(x:bool):int +{ + while x { + return 0 + } +} +//@PRACOWNIA +//@should_not_typecheck |