assertions icon indicating copy to clipboard operation
assertions copied to clipboard

Incompatible types error in Elixir 1.17

Open nathany-copia opened this issue 7 months ago • 0 comments

This is the one I encountered in my own project, but it fails in the test suite as well.

warning: incompatible types in expression:

    comparison

expected type:

    fun()

but got type:

    non_empty_list()

where "comparison" (context Assertions) was given the type:

    # type: non_empty_list()
    # from: (for doctest at) lib/assertions.ex:316
    comparison = keys_or_comparison

└─ (for doctest at) lib/assertions.ex:316: AssertionsTest."doctest Assertions.assert_maps_equal/3 (8)"/1

There are a number of test failures in Elixir 1.17, and I imagine it would be worth making sure the library/tests are compatible with 1.16 before tackling it.

nathany-copia avatar Jun 27 '24 20:06 nathany-copia