aboutsummaryrefslogtreecommitdiffstats
path: root/lib/dialyzer/test/indent_SUITE_data/src/bs_fail_constr.erl
blob: 8c1f8c009ac3f63fd3403f8638497da7fc252070 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
-module(bs_fail_constr).

-export([w1/1, w2/1, w3/1, w4/1]).

w1(V) when is_float(V) ->
  <<V/integer>>.

w2(V) when is_atom(V) ->
  <<V/binary>>.

w3(S) when is_integer(S), S < 0 ->
  <<42:S/integer>>.

w4(V) when is_float(V) ->
  <<V/utf32>>.