Skip to content

Commit 7c5ce0c

Browse files
committed
Fix System.halt/1 and System.halt/0 type specifications
Dialyzer no longer complains about them.
1 parent 73340a4 commit 7c5ce0c

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

lib/elixir/lib/system.ex

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -169,6 +169,8 @@ defmodule System do
169169
System.halt(:abort)
170170
171171
"""
172+
@spec halt() :: no_return
173+
@spec halt(non_neg_integer | List.Chars.t | :abort) :: no_return
172174
@spec halt(non_neg_integer | List.Chars.t | :abort, [] | [flush: false]) :: no_return
173175
def halt(status // 0, options // [])
174176

0 commit comments

Comments
 (0)