diff --git a/lang/README.md b/lang/README.md index 7aae452..a1301fe 100644 --- a/lang/README.md +++ b/lang/README.md @@ -1046,12 +1046,12 @@ main := fn(): uint { ```hb x := 1 -foo := fn(): int { +foo := fn(): void { loop if true break x = 0 } -main := fn(): int { +main := fn(): uint { @inline(foo) return x } diff --git a/lang/src/son.rs b/lang/src/son.rs index 900f704..707ae74 100644 --- a/lang/src/son.rs +++ b/lang/src/son.rs @@ -4412,6 +4412,7 @@ mod tests { writing_into_string; request_page; tests_ptr_to_ptr_copy; + inlining_loops; null_check_test; // Just Testing Optimizations; diff --git a/lang/tests/son_tests_inlining_loops.txt b/lang/tests/son_tests_inlining_loops.txt new file mode 100644 index 0000000..e69de29