blob: 4e1a0b015a3fa24cd926d2e795943ca12d77eaa1 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
|
-module(no_local_return).
%% NOTE: No function is exported. Dialyzer produced a bogus
%% 'Function foo/0 has no local return' warning
%% when in fact typer was finding correct return values for both
%% these functions.
foo() ->
bar(42).
bar(X) ->
lists:duplicate(X, gazonk).
|