Skip to content

Compiler strict mode check for unused function arguments with else keyword #358

Discussion options

You must be logged in to vote

@ethanjli honoring a function with a default value would be a workaround. Also something like below:

is_authenticated(subject) {
        subject.authenticated
        subject.identity != ""
} else = false {
        _ := subject
}

But this seems like a bug. Can you please open an issue with these details?

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@ethanjli
Comment options

Answer selected by ethanjli
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants