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
pubenumRepro{A(i64),B(i64),}fnmake(a:bool,data:i64) -> Repro{(match a {true => Repro::A,false => Repro::B,}(data))}
Issue
When I write my code as suggested, I get a warning for putting parenthesis around this match statement:
However, upon doing what the warning says, I am then greeted with a compiler error (the error persists if I put the parenthesis next to the closing brace of the match statement, as expected)