You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently I noticed that if we have a pancake function that doesn't have a return statement, for example in the below foo():
fun main() {
var my_base = @base;
foo(my_base);
return 0;
}
fun foo(1 ptr) {
var x = 42;
stw ptr, x;
}
This will trigger run time error Segmentation fault (core dumped).
It might be more convenient if it can be captured during compile time if a return statement is expected for every function.
The text was updated successfully, but these errors were encountered:
Currently I noticed that if we have a pancake function that doesn't have a return statement, for example in the below
foo()
:This will trigger run time error
Segmentation fault (core dumped)
.It might be more convenient if it can be captured during compile time if a return statement is expected for every function.
The text was updated successfully, but these errors were encountered: