We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3eb983c commit 17da768Copy full SHA for 17da768
src/compiler.rs
@@ -322,12 +322,12 @@ mod tests {
322
let code = r#"
323
assert(cond: bool) → void
324
325
- id(x: i32) → i32 {
326
- x
327
- }
+ // id(x: i32) → i32 {
+ // x
+ // }
328
329
main {
330
- let y = id(42)
+ // let y = id(42)
331
// assert(y == 42)
332
}
333
"#;
src/jit.rs
@@ -106,7 +106,9 @@ impl JIT {
106
decls: &DeclTable,
107
decl: &FuncDecl,
108
) -> Result<cranelift_module::FuncId, String> {
109
- // self.ctx.func.signature =
+ self.ctx.func.signature = fn_sig(&self.module,
110
+ decl.domain(),
111
+ decl.ret);
112
113
let called_functions = self.function_body(decls, decl);
114
0 commit comments