parsifal-47 / sisal-js

Javascript interpreter for sisal
BSD 2-Clause "Simplified" License
3 stars 0 forks source link

Unused variable error in let-in statement #19

Open datsis opened 7 years ago

datsis commented 7 years ago

Hash: 0c979a907ab8fa6b37dd91574d529819f09d0a77

Source Code:

function Main( M : integer returns integer )
  let
    A := 1;
    B := 2
  in
    A + A
  end let
end function

Error: Uncaught Output parameter list mismatch 2 instead of 1connectOutput @ ir.gen.js:272parse @ ir.gen.js:146parse @ ir.gen.js:96node.sisalir @ ir.nodes.js:309trn @ example.html:29onclick @ example.html:98

parsifal-47 commented 7 years ago

Program is converted to: https://github.com/parsifal-47/sisal-is/blob/master/examples/gd/example1.sis

Error no longer relevant, feel free to create any traditional issues at sisal-is