[SR-11507] Type inference breaks using flatMap in ternary operator #53908
Labels
bug
A deviation from expected or documented behavior. Also: expected but undesirable behavior.
compiler
The Swift compiler in itself
type checker
Area → compiler: Semantic analysis
Environment
macOS 10.14.6
Xcode 11.0
Additional Detail from JIRA
md5: ce3bf80ddd36708fbf03ea71d8edf9af
Issue Description:
Using following code I would expect to get identical output from print statements. However it differs:
Being explicit helps too:
The text was updated successfully, but these errors were encountered: