noib3/nvim-oxi

Variance issue for `Function`

Opened this issue · 0 comments

I'm pretty sure the A parameter for Function<A, R> should be contravariant, but it is covariant because of (PhantomData<A>, PhantomData<R>). Changing it to PhantomData<fn(A) -> R> should fix this