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

-export([ok1/0, wrong1/0, wrong2/0]).

ok1() ->
  array:set(17, gazonk, array:new()).

wrong1() ->
  {array, _, _, undefined, _} = array:new(42).

wrong2() ->
  case is_tuple(array:new(42)) of
    true -> structure_is_exposed;
    false -> cannot_possibly_be
  end.