You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
unique type AbilityHolder g =
AbilityHolder ('{g} ())
fails : AbilityHolder {Stream Nat}
fails = AbilityHolder (forever' do
()
)
works : AbilityHolder {Stream Nat}
works = AbilityHolder (do
()
)
alsoWorks : AbilityHolder {Stream Nat}
alsoWorks = AbilityHolder (forever' do
emit 1
)
It seems that something about forever' : '{g} a -> '{g} b is throwing off ability inference so that it doesn't allow the empty ability list to unify with an unused ability.
If I actually use the expected ability it works fine 🤷🏼
The text was updated successfully, but these errors were encountered:
It seems that something about
forever' : '{g} a -> '{g} b
is throwing off ability inference so that it doesn't allow the empty ability list to unify with an unused ability.If I actually use the expected ability it works fine 🤷🏼
The text was updated successfully, but these errors were encountered: