diff --git a/lib/iex/lib/iex/helpers.ex b/lib/iex/lib/iex/helpers.ex index d1d09698bb..5d8fa9dee9 100644 --- a/lib/iex/lib/iex/helpers.ex +++ b/lib/iex/lib/iex/helpers.ex @@ -117,6 +117,13 @@ defmodule IEx.Helpers do end end + defmacro h({ name, _, args }) when args in [nil, []] do + quote do + h(unquote(__MODULE__), unquote(name)) + h(Kernel, unquote(name)) + end + end + defmacro h(other) do quote do h(unquote(other), [])