brownplt / pyret-lang

The Pyret language.
Other
1.07k stars 109 forks source link

My code is producing an error message of an internal error #1184

Closed mmarkell closed 6 years ago

mmarkell commented 6 years ago
fun yay(l, keep):
  cases (List) l:
    | empty => empty
    | link(f, r) =>
      if keep:
        link(f * 2, yay(r, false))
      else:
        yay(r, true)
      end
  end
end

yay([list: 1,5,3,2,1], true)
shriram commented 6 years ago

Hi there. I just tried this program and I'm unable to reproduce the error.

Let me ask you to try something. Start code.pyret.org/editor and wait until everything is loaded (you should get a ">" prompt on the right). After that, paste in the code, and run it.

Do you still get the error?

mmarkell commented 6 years ago

I just tried it, and you're right in that I can no longer produce the error.

I'm slightly untrusting of that though, because before I ran this program, I had run several other programs without refreshing the page and they all worked fine...maybe there is something more nuanced going on?

Either way, it works now, so thank you!

schanzer commented 6 years ago

This was either fixed or not reproducible to begin with. Closing.