svahne/browserl — Issue #2: Anonymous function with parameter stuck
Author: pichi
Created: 2012-01-31 08:08:25+00:00
State: open

This code works:
(fun()->ok end)().

Any of those lines stucks forever:
(fun(X) -> X*X end)(10).
(fun(X) -> X end)(10).
(fun(_) -> ok end)(foo).