-
-
Notifications
You must be signed in to change notification settings - Fork 82
Closed
Labels
exp: highAchievable by investing significant time and effort, potentially through collaborationAchievable by investing significant time and effort, potentially through collaborationpri: highAn issue resulting in complete or substantial loss of functionality, that can be circumventedAn issue resulting in complete or substantial loss of functionality, that can be circumventedtype: fixBug fix or reportBug fix or report
Description
pub fn fact(n: usize) -> usize {
if n == 0 {return 1} else {n * x(n-1)}
}This panics here https://github.com/TheDan64/inkwell/blob/master/src/module.rs#L1383
Removing the return keyword or adding return in the else clause fixes the issue.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
exp: highAchievable by investing significant time and effort, potentially through collaborationAchievable by investing significant time and effort, potentially through collaborationpri: highAn issue resulting in complete or substantial loss of functionality, that can be circumventedAn issue resulting in complete or substantial loss of functionality, that can be circumventedtype: fixBug fix or reportBug fix or report