RelationalAI-oss / Rematch.jl

Pattern matching
Other
52 stars 6 forks source link

Fix tests on latest julia, and fix tests of type inference #32

Closed NHDaly closed 2 years ago

NHDaly commented 2 years ago

The right way to test that julia can type infer a function's return type is to use the @inferred macro from Test, not @code_typed.

This expands to a call to Base.return_types() and checks that the function returned a value with the same exact concrete type that julia inferred.

This lets us drop the dependencies on Compat, which were broken in more recent versions of julia