forked from M-Labs/nac3
1
0
Fork 0

fix codegen test about top level composer return type change

This commit is contained in:
ychenfo 2021-08-25 18:00:01 +08:00
parent 35a331552b
commit 1a21fb1072
1 changed files with 2 additions and 2 deletions

View File

@ -48,7 +48,7 @@ fn test_primitives() {
"};
let statements = parse_program(source).unwrap();
let (_, composer) = TopLevelComposer::new();
let composer = TopLevelComposer::new();
let mut unifier = composer.unifier.clone();
let primitives = composer.primitives_ty;
let top_level = Arc::new(composer.make_top_level_context());
@ -190,7 +190,7 @@ fn test_simple_call() {
"};
let statements_2 = parse_program(source_2).unwrap();
let (_, composer) = TopLevelComposer::new();
let composer = TopLevelComposer::new();
let mut unifier = composer.unifier.clone();
let primitives = composer.primitives_ty;
let top_level = Arc::new(composer.make_top_level_context());