[erlang-bugs] Funs with duplicate names

Sam Chapin sc@REDACTED
Fri Sep 26 07:34:37 CEST 2014


I'm new to the list, apologies if this is known. Discovered while working
in OTP 17.1, and it's still present after updating to 17.3.

Create a module containing the following:

f1() -> fun F() -> "f1" end().

f2() -> fun F() -> "f2" end().

Load it and execute f2(). On my system, its return value is "f1".
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-bugs/attachments/20140926/523ad9b7/attachment.htm>


More information about the erlang-bugs mailing list