Skip to content

Panic when using mun build #228

@sigmaSd

Description

@sigmaSd
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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    exp: highAchievable by investing significant time and effort, potentially through collaborationpri: highAn issue resulting in complete or substantial loss of functionality, that can be circumventedtype: fixBug fix or report

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions