1
0
forked from M-Labs/nac3

nac3standalone: added return check

This commit is contained in:
pca006132 2021-08-27 11:39:36 +08:00
parent a24e204824
commit 52dd792b3e

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(