try solving autos when a related constraint is added
This commit is contained in:
13
tests/InferenceIssue.newt
Normal file
13
tests/InferenceIssue.newt
Normal 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
|
||||
|
||||
Reference in New Issue
Block a user