Funs with duplicate names

Sam Chapin <[email protected]>
Newsgroups gmane.comp.lang.erlang.bugs
Message-ID <CA+NHAkgxsLnGqy+HUyu+8doYNa9eZvft9V40joJVT3=MZe362w@mail.gmail.com>
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".

_______________________________________________
erlang-bugs mailing list
[email protected]
http://erlang.org/mailman/listinfo/erlang-bugs
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.