fn: breaking - fix type variables for better inference

This commit is contained in:
Keagan McClelland committed 2024-11-06 16:50:06 -07:00
1 parent 9bbd327a10
commit a026d64c1b
4 files changed
+8 -10

No files matched your search

+2 -4
View File
@@ -100,16 +100,14 @@ func TestPropToOptionIdentities(t *testing.T) {
e = NewRight[int, string](s)
r2O := e.RightToOption() == Some(s)
o2R := e == OptionToRight[string, int, string](
Some(s), i,
)
o2R := e == OptionToRight(Some(s), i)
l2O := e.LeftToOption() == None[int]()
return r2O && o2R && l2O
} else {
e = NewLeft[int, string](i)
l2O := e.LeftToOption() == Some(i)
o2L := e == OptionToLeft[int, int](Some(i), s)
o2L := e == OptionToLeft(Some(i), s)
r2O := e.RightToOption() == None[string]()
return l2O && o2L && r2O