Created
December 28, 2013 02:04
-
-
Save umurgdk/8155227 to your computer and use it in GitHub Desktop.
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
defmodule DumbModule do | |
@type dumb_type :: :a | :b | |
@spec dumb_function(dumb_type) :: dumb_type | |
def dumb_function(_data) do | |
:c | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
dialyzer warns me with
hello_world_handler.ex:5: Invalid type specification for function 'Elixir.Tutorial.HelloWorldHandler':dede/0. The success typing is () -> 'c'