forked from M-Labs/nac3
1
0
Fork 0

nac3standalone: added return check

This commit is contained in:
pca006132 2021-08-27 11:39:36 +08:00
parent a24e204824
commit 52dd792b3e
1 changed files with 4 additions and 2 deletions

View File

@ -122,9 +122,11 @@ fn main() {
.unwrap();
let mut identifiers = vec!["output".to_string()];
inferencer
if !inferencer
.check_block(&statements, &mut identifiers)
.unwrap();
.unwrap() {
panic!("expected return");
}
let top_level = Arc::new(TopLevelContext {
definitions: Arc::new(RwLock::new(std::mem::take(