We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1dd09cb commit 174b771Copy full SHA for 174b771
lib/elixir/lib/module/types/unify.ex
@@ -831,7 +831,7 @@ defmodule Module.Types.Unify do
831
end
832
833
def format_type({:var, index}, _simplify?) do
834
- "var#{index}"
+ "var#{index + 1}"
835
836
837
def format_type(atom, _simplify?) when is_atom(atom) do
lib/elixir/test/elixir/module/types/types_test.exs
@@ -144,14 +144,14 @@ defmodule Module.Types.TypesTest do
144
assert string == """
145
incompatible types:
146
147
- {var0} !~ var0
+ {var1} !~ var1
148
149
in expression:
150
151
# types_test.ex:1
152
{var} = var
153
154
- where "var" was given the type {var0} in:
+ where "var" was given the type {var1} in:
155
156
157
0 commit comments