try solving autos when a related constraint is added

This commit is contained in:
2025-01-02 22:44:17 -08:00
parent 591608eece
commit 5a6dcdb92b
5 changed files with 84 additions and 26 deletions

13
tests/InferenceIssue.newt Normal file
View File

@@ -0,0 +1,13 @@
module InferenceIssue
import Prelude
something : String Maybe (Either String String)
foo : String Maybe String
foo s = do
bar <- something s
case bar of
Left x => Just x
Right y => Just y