Created
June 21, 2011 13:36
-
-
Save garazdawi/1037856 to your computer and use it in GitHub Desktop.
dialyze this!
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module(test). | |
-export([get_data/1]). | |
get_data([T|Rest]) -> | |
case T of | |
test -> | |
do_error([T|Rest]); | |
_Else -> | |
do_error([]) | |
end. | |
do_error([_H|_T]) -> | |
go; | |
do_error([]) -> | |
error(no_go). | |
test.erl:10: The call test:do_error([]) will never return since it differs in the 1st argument from the success typing arguments: (nonempty_maybe_improper_list()) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment