From 8f079bad1f623b8da2bf327f7d8fd85cbecd1e39 Mon Sep 17 00:00:00 2001
From: Andrew Kelley
- The compiler noticed that evaluating this function at compile-time took a long time, - and thus emitted a compile error and gave up. If the programmer wants to increase - the budget for compile-time computation, they can use a built-in function called - {#link|@setEvalBranchQuota#} to change the default number 1000 to something else. + The compiler is supposed to notice that evaluating this function at + compile-time took more than 1000 branches, and thus emits an error and + gives up. If the programmer wants to increase the budget for compile-time + computation, they can use a built-in function called + {#link|@setEvalBranchQuota#} to change the default number 1000 to + something else. +
++ However, there is a design + flaw in the compiler causing it to stack overflow instead of having the proper + behavior here. I'm terribly sorry about that. I hope to get this resolved + before the next release.
- What if we fix the base case, but put the wrong value in the {#syntax#}expect{#endsyntax#} line? + What if we fix the base case, but put the wrong value in the + {#syntax#}expect{#endsyntax#} line?
{#code_begin|test_err|reached unreachable#} const assert = @import("std").debug.assert; -- cgit v1.2.3