Closed Atry closed 6 years ago
@milessabin Is there any way to infer it to Some["foo"]
except explicit "foo".narrow
?
FYI, It's the same in dotty:
error: type mismatch:
found : Some[String]
required: Some[String & Singleton]
someLiteral(Some("foo"))
@Atry, if you want to hold on to the narrowed type, you might want to checkout TwoFace
, as described here.
I think this is essentially the same issue as #145 ... closing for now. We can revisit later if need be.