The code seems fine, I think this one is a bug in the compiler.
Opened an issue: Incorrect incompatible type warning on map dot access · Issue #13335 · elixir-lang/elixir · GitHub
The code seems fine, I think this one is a bug in the compiler.
Opened an issue: Incorrect incompatible type warning on map dot access · Issue #13335 · elixir-lang/elixir · GitHub