Expect k1 k2 k3 can all be split to Z (S k) cases.
Observed Behavior
An error of No valid case splits but the underlying cause is a hidden error of :1:1--1:1:Name Main.Foo1.foo is private
This error comes from handleUnify in mkCase called from src/TTImp/Interactive/CaseSplit.idr:getSplitsLHS
This issue does not occur on private definitions that are at the top level, only in nested namespaces.
This issue also appears for the :gd command.
Steps to Reproduce
Split
k1
with any method, e.g. :cs 5 7 k1Expected Behavior
Expect k1 k2 k3 can all be split to Z (S k) cases.
Observed Behavior
An error of
No valid case splits
but the underlying cause is a hidden error of:1:1--1:1:Name Main.Foo1.foo is private
This error comes fromhandleUnify
inmkCase
called fromsrc/TTImp/Interactive/CaseSplit.idr:getSplitsLHS
This issue does not occur on private definitions that are at the top level, only in nested namespaces. This issue also appears for the :gd command.