# Starter bug: Sequence.flatMap() is missing a @noescape

**URL:** <https://forums.swift.org/t/starter-bug-sequence-flatmap-is-missing-a-noescape/269>\
**Category:** Compiler\
**Created:** [December 7, 2015, 11:02pm UTC](https://forums.swift.org/t/starter-bug-sequence-flatmap-is-missing-a-noescape/269 "2015-12-07T23:02:06Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![gribozavr](https://avatars.discourse-cdn.com/v4/letter/g/65b543/32.png) [@gribozavr](https://forums.swift.org/u/gribozavr)\
**Post date:** [December 7, 2015, 11:02pm UTC](https://forums.swift.org/t/starter-bug-sequence-flatmap-is-missing-a-noescape/269/1 "2015-12-07T23:02:06Z")

</div>

Hi everyone,

Here's another simple starter bug.

Sequence.flatMap() is missing a @noescape on the closure.

This is a pretty straightforward change, requires an accompanying  
test, and a proposal to swift-evolution.

> <https://github.com/apple/swift/issues/42748>
>
> | | |
> |------------------|-----------------|…
> |Previous ID | SR-126 |
> |Radar | rdar://problem/23662419 |
> |Original Reporter | @gribozavr |
> |Type | Bug |
> |Status | Resolved |
> |Resolution | Done |
>         
> \<details\>
> \<summary\>Additional Detail from JIRA\</summary\>
> 
> | | |
> |------------------|-----------------|
> |Votes | 0 |
> |Component/s | Standard Library |
> |Labels | Bug, AffectsABI, StarterBug |
> |Assignee | @meadori |
> |Priority | Medium |
> 
>    
> 
> md5: 39d91ddba471f9685d720a1066f7095b
> 
> \</details\>
> 
> 
> 
> 
> 
> \*\*Issue Description:\*\*
> 
> 
> Sequence.flatMap() is missing a \`@noescape\` on the closure.
> 
> This is a pretty straightforward change, requires an accompanying test, and a proposal to swift-evolution.

Dmitri

> **···**
>
> --  
> main(i,j){for(i=2;;i++){for(j=2;j\<i;j++){if(!(i%j)){j=0;break;}}if  
> (j){printf("%d\n",i);}}} /\*Dmitri Gribenko \<gribozavr@gmail.com\>\*/

---

<div class="post-metadata">

**Author:** ![Meador\_Inge](https://avatars.discourse-cdn.com/v4/letter/m/a8b319/32.png) [@Meador\_Inge](https://forums.swift.org/u/Meador_Inge)\
**Post date:** [December 8, 2015, 3:45am UTC](https://forums.swift.org/t/starter-bug-sequence-flatmap-is-missing-a-noescape/269/2 "2015-12-08T03:45:41Z")

</div>

Proposal mail here:  
[https://lists.swift.org/pipermail/swift-evolution/Week-of-Mon-20151207/001025.html](https://lists.swift.org/pipermail/swift-evolution/Week-of-Mon-20151207/001025.html)

Cheers,

Meador

> **···**
>
> On Mon, Dec 7, 2015 at 5:02 PM, Dmitri Gribenko via swift-dev \< swift-dev@swift.org\> wrote:
> 
> > Hi everyone,
> > 
> > Here's another simple starter bug.
> > 
> > Sequence.flatMap() is missing a @noescape on the closure.
> > 
> > This is a pretty straightforward change, requires an accompanying  
> > test, and a proposal to swift-evolution.
> > 
> > [[SR-126] Sequence.flatMap() is missing a @noescape · Issue #42748 · apple/swift · GitHub](https://bugs.swift.org/browse/SR-126)
