[SR-5422] Regression: Call to Optional flatMap/map segfault #47996
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
Xcode 9 beta 3
(Some Xcode 8.3.3 issues noted, as well.)
Additional Detail from JIRA
md5: 69fb8bbd42d000a5ed52d2bd6b06b093
is blocked by:
Issue Description:
The following causes a segfault in the type-checker:
Trace:
(This compiles fine in previous versions of Xcode.)
The flipped version doesn't segfault, but fails to compile:
Adopting a point-free style also fails to compile:
(This also used to compile.)
Meanwhile:
Xcode 9:
Xcode 8.3.3:
And:
Xcode 9:
Xcode 8.3.3:
The text was updated successfully, but these errors were encountered: