Closed despairblue closed 9 years ago
Same, trying
node_modules/sweet.js/bin/sjs -m contracts-js/macros -o out.js src/test.sjs
with
import @ from "contracts.js"
@ (Bool) -> Bool
function hello (v) {
console.log('hello!', v);
return v;
}
hello(false);
Looks like this has something to do with sweet.js 0.7.1 -> 0.7.2 . Rolling back seems to work for my example.
Fails locally: "contracts-js": "0.6.2", "sweet.js": "0.7.2", Works locally: "contracts-js": "0.6.2", "sweet.js": "0.7.1",
I think I fixed it at mozilla/sweet.js#309. Will update the contracts.js dependency once we cut a new release for sweet.js.
Trying the example from the website I get this:
For reference: mozilla/sweet.js#309