And simpler still ... import std/asyncjs import std/jsconsole import std/sugar proc f() : Future[string] {.async.} = return "hello" f().then((s : string) => console.log(s)) Run $ nim js test.nim Error: attempting to call undeclared routine: 'then' Run
- Compilation error (type mismatch) yalexr
- Compilation error (type mismatch) PMunch
- Compilation error (type mismatch) Araq
- Compilation error (type mismatch) yalexr
- Compilation error (type mismatch) yalexr
- Compilation error (type mismatch) xigoi
- Compilation error (type mismatch) yalexr
- Compilation error (type mismatch) geotre
- Compilation error (type mismatch) yalexr
- Compilation error (type mismatch) yalexr
- Compilation error (type mismatch) DomoSokrat
- Compilation error (type mismatch) yalexr