diff options
author | John Högberg <[email protected]> | 2018-07-18 12:21:42 +0200 |
---|---|---|
committer | GitHub <[email protected]> | 2018-07-18 12:21:42 +0200 |
commit | 64d7d7ab81e3c2163301a77969c75c6b73804d8b (patch) | |
tree | 88edc95a533a22ae5bf19a707c50817aa26de39c /lib/stdlib | |
parent | 0e9c319480d9cfb778b654bf2cd71e7bd31464f9 (diff) | |
parent | f31db22102bde44c6ee17bc756bdeb109855acea (diff) | |
download | otp-64d7d7ab81e3c2163301a77969c75c6b73804d8b.tar.gz otp-64d7d7ab81e3c2163301a77969c75c6b73804d8b.tar.bz2 otp-64d7d7ab81e3c2163301a77969c75c6b73804d8b.zip |
Merge pull request #1812 from michalmuskala/mm/make-fun-loader
Optimise creation of anonymous functions
Diffstat (limited to 'lib/stdlib')
-rw-r--r-- | lib/stdlib/test/lists_SUITE.erl | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/stdlib/test/lists_SUITE.erl b/lib/stdlib/test/lists_SUITE.erl index 837ab4e97e..af94fc79bc 100644 --- a/lib/stdlib/test/lists_SUITE.erl +++ b/lib/stdlib/test/lists_SUITE.erl @@ -1679,7 +1679,7 @@ make_fun() -> receive {Pid, Fun} -> Fun end. make_fun(Pid) -> - Pid ! {self(), fun make_fun/1}. + Pid ! {self(), fun (X) -> {X, Pid} end}. fun_pid(Fun) -> erlang:fun_info(Fun, pid). |