aboutsummaryrefslogtreecommitdiffstats
path: root/lib/dialyzer
diff options
context:
space:
mode:
authorHans Bolinder <[email protected]>2014-05-26 08:56:05 +0200
committerHans Bolinder <[email protected]>2014-05-26 08:56:05 +0200
commit11540c517b082ee9be131d9cc96b24a4a5d4c7c8 (patch)
tree1feafe787add90cc918404ce136ac9de56ebce02 /lib/dialyzer
parente6c124ad7515f4b50cca8bd7ba4744ec8c1ef09c (diff)
parent21af711057b5369e54d8eabf2f63eda734f5f259 (diff)
downloadotp-11540c517b082ee9be131d9cc96b24a4a5d4c7c8.tar.gz
otp-11540c517b082ee9be131d9cc96b24a4a5d4c7c8.tar.bz2
otp-11540c517b082ee9be131d9cc96b24a4a5d4c7c8.zip
Merge branch 'maint'
* maint: hipe: fix a bug concerning typed record fields
Diffstat (limited to 'lib/dialyzer')
-rw-r--r--lib/dialyzer/test/small_SUITE_data/src/remote_field2.erl17
1 files changed, 17 insertions, 0 deletions
diff --git a/lib/dialyzer/test/small_SUITE_data/src/remote_field2.erl b/lib/dialyzer/test/small_SUITE_data/src/remote_field2.erl
new file mode 100644
index 0000000000..35687e22ec
--- /dev/null
+++ b/lib/dialyzer/test/small_SUITE_data/src/remote_field2.erl
@@ -0,0 +1,17 @@
+-module(remote_field2).
+
+-export([handle_cast/2]).
+
+-record(state, {tcp_socket :: inet:socket()}).
+
+-spec handle_cast(_,_) ->
+ {noreply,_} |
+ {stop,{shutdown,connection_closed},
+ #state{tcp_socket :: port()}}.
+handle_cast({send, Message}, #state{tcp_socket = TCPSocket} = State) ->
+ case gen_tcp:send(TCPSocket, Message) of
+ ok ->
+ {noreply, State};
+ {error, closed} ->
+ {stop, {shutdown, connection_closed}, State}
+ end.