File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -807,9 +807,11 @@ defmodule ExDoc.Language.ErlangTest do
807807 assert autolink_spec ( ~s" -spec foo() -> fun((...) -> t()) | erlang_bar:t()." , c ) ==
808808 ~s[ foo() -> fun((...) -> <a href="#t:t/0">t</a>()) | <a href="erlang_bar.html#t:t/0">erlang_bar:t</a>().]
809809
810- assert autolink_spec ( ~s" -type foo() :: fun((...) -> any()) | [any()]." , c ) ==
811- "foo() :: fun((...) -> <a href=\" https://www.erlang.org/doc/apps/erts/erlang.html#t:any/0\" >any</a>()) | " <>
812- "[<a href=\" https://www.erlang.org/doc/apps/erts/erlang.html#t:any/0\" >any</a>()]."
810+ if Version . match? ( System . version ( ) , ">= 1.18.0-rc" ) do
811+ assert autolink_spec ( ~s" -type foo() :: fun((...) -> any()) | [any()]." , c ) ==
812+ "foo() :: fun((...) -> <a href=\" https://www.erlang.org/doc/apps/erts/erlang.html#t:any/0\" >any</a>()) | " <>
813+ "[<a href=\" https://www.erlang.org/doc/apps/erts/erlang.html#t:any/0\" >any</a>()]."
814+ end
813815 end
814816
815817 test "local type" , c do
You can’t perform that action at this time.
0 commit comments