Open clayrat opened 6 years ago
Thanks for reporting the issue.
@clayrat Hmm, looking at the code it should be correct to rely on Bind
, the question is just why allTTnames
does not report the correct type.
@clayrat Ah nevermind, the problem is in posArg
!
@clayrat Yes, it should check recursively in App
as well.
unless there's some way to constrain f?
Is there? (I'm really interested in doing this.)
@ivanperez-keera You have to take a look at something like generic programming.
Steps to Reproduce
Expected Behavior
Both cases fail the positivity check (unless there's some way to constrain
f
?)Observed Behavior
On Idris 1.2.0:
I suspect the root cause is missing cases in Idris.Termination.checkPositive.cp, but I'm not sure what are the correct ones for nested data, is it something starting with
App
?