Closed tcr closed 7 years ago
This converts to this, when it should convert into one overloaded function.
pub fn interpretStatement(next: String) -> String {
/* do */ {
let isDefault = |Some(condition)| {
Left(condition)
};
let isDefault = |None| {
Right(())
};
}
}
Search for these two lines and you'll see they are generated improperly (not as top-level fns, but like two inline lambas in a let statement)