first running uw8 module

This commit is contained in:
2021-10-26 20:29:57 +02:00
parent 3b4eeb5f9c
commit af1c8f999b
5 changed files with 28 additions and 13 deletions

View File

@@ -21,7 +21,7 @@ pub fn tc_script(script: &mut ast::Script) -> Result<()> {
for import in &script.imports {
match import.type_ {
ast::ImportType::Variable { name, type_ } => {
ast::ImportType::Variable { name, type_, .. } => {
if context.global_vars.contains_key(name) {
return Err(Error {
position: import.position,
@@ -31,7 +31,7 @@ pub fn tc_script(script: &mut ast::Script) -> Result<()> {
context.global_vars.insert(name, type_);
}
// ast::ImportType::Function { .. } => todo!(),
ast::ImportType::Memory( .. ) => ()
ast::ImportType::Memory(..) => (),
}
}