Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
18
Task/Stack-traces/Erlang/stack-traces.erl
Normal file
18
Task/Stack-traces/Erlang/stack-traces.erl
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
-module(stack_traces).
|
||||
|
||||
-export([main/0]).
|
||||
|
||||
main() ->
|
||||
{ok,A} = outer(),
|
||||
io:format("~p\n", [A]).
|
||||
|
||||
outer() ->
|
||||
{ok,A} = middle(),
|
||||
{ok,A}.
|
||||
|
||||
middle() ->
|
||||
{ok,A} = inner(),
|
||||
{ok,A}.
|
||||
|
||||
inner() ->
|
||||
try throw(42) catch 42 -> {ok,erlang:get_stacktrace()} end.
|
||||
Loading…
Add table
Add a link
Reference in a new issue