From 12e8d97c08cac48024c54000cf78e8d642723edd Mon Sep 17 00:00:00 2001 From: Lukasz Samson Date: Wed, 24 Jun 2026 21:29:24 +0200 Subject: [PATCH] Refer to the right function in remote_apply error on `:maps.values/1` --- lib/elixir/lib/module/types/apply.ex | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/elixir/lib/module/types/apply.ex b/lib/elixir/lib/module/types/apply.ex index 9066cfb2e9..db3642fab6 100644 --- a/lib/elixir/lib/module/types/apply.ex +++ b/lib/elixir/lib/module/types/apply.ex @@ -1416,7 +1416,7 @@ defmodule Module.Types.Apply do defp remote_apply(:maps, :values, _info, [map], stack) do case map_to_list(map, fn _key, value -> value end) do {:ok, list_type} -> {:ok, return(list_type, [map], stack)} - :badmap -> {:error, badremote(:maps, :keys, [map])} + :badmap -> {:error, badremote(:maps, :values, [map])} end end