diff --git a/lib/elixir_sense/core/metadata_builder.ex b/lib/elixir_sense/core/metadata_builder.ex index ac371fbf..129d900b 100644 --- a/lib/elixir_sense/core/metadata_builder.ex +++ b/lib/elixir_sense/core/metadata_builder.ex @@ -597,7 +597,7 @@ defmodule ElixirSense.Core.MetadataBuilder do {:defdelegate, meta, [{name, meta2, params}, body]}, state ) - when is_atom(name) do + when is_atom(name) and is_list(body) do ast_without_params = {:defdelegate, meta, [{name, add_no_call(meta2), []}, body]} target_module = body |> Keyword.get(:to)