Skip to content

using . (dot) reference syntax on a map fails when value is a function #380

Description

@vans163
#Good
map = %{test_map: 111}
map.test_map

#Good
map = %{test_map: &Map.get/2}
Map.get(map, :test_map)

#Bad
map = %{test_map: &Map.get/2}
map.test_map

#Uncaught MatchError: No match for: 

Note that Map.get/2 still works in the Bad case.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions