-
Notifications
You must be signed in to change notification settings - Fork 5.4k
Closed
Labels
P: highShould be looked at if there are no critical issues leftShould be looked at if there are no critical issues leftbugSomething isn't workingSomething isn't workingcompiler: frontendEverything to do with type checking, control flow analysis, and everything between parsing and IRgenEverything to do with type checking, control flow analysis, and everything between parsing and IRgenteam:compilerCompiler TeamCompiler Team
Description
Found this issue while compiling a predicate:
This compiles:
if let Result::Ok(address) = result_address {
true
} else {
false
}
However, this doesn't:
if let Result::Ok(address) = result_address {
return true
} else {
return false
}
Likewise, this doesn't compile either:
if let Result::Ok(address) = result_address {
return true;
} else {
return false;
};
mohammadfawaz
Metadata
Metadata
Assignees
Labels
P: highShould be looked at if there are no critical issues leftShould be looked at if there are no critical issues leftbugSomething isn't workingSomething isn't workingcompiler: frontendEverything to do with type checking, control flow analysis, and everything between parsing and IRgenEverything to do with type checking, control flow analysis, and everything between parsing and IRgenteam:compilerCompiler TeamCompiler Team
Type
Projects
Status
Done


