# Wrong Exit modifier: can not find "Do" in the current context

**URL:** https://talk.remobjects.com/t/wrong-exit-modifier-can-not-find-do-in-the-current-context/25530
**Category:** Mercury
**Created:** [October 13, 2021, 6:17pm UTC](https://talk.remobjects.com/t/wrong-exit-modifier-can-not-find-do-in-the-current-context/25530 "2021-10-13T18:17:42Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![Theo69](https://talk.remobjects.com/letter_avatar_proxy/v4/letter/t/35a633/32.png) [@Theo69](https://talk.remobjects.com/u/Theo69)
#### Post date: [October 13, 2021, 6:17pm UTC](https://talk.remobjects.com/t/wrong-exit-modifier-can-not-find-do-in-the-current-context/25530/1 "2021-10-13T18:17:42Z")

</div>

Project to reproduce: [ConsoleApplication19 1.bugreport.zip](https://talk.remobjects.com/uploads/short-url/2dFKxzLbw3xb3XTbEWtxDuA3fDA.zip) (34.1 KB)

build log: [ConsoleApplication19 1.bugreport.txt](https://talk.remobjects.com/uploads/short-url/cVpP4PNEUUQQlPrTUUDpcoo1HEP.txt) (17.9 KB)

Code:

 ![image](https://talk.remobjects.com/uploads/default/original/3X/5/6/5690071b09f14304d84b923bfb14f8ebe3ed2c4c.png)

Problem: The exit do statement is 100% valid.  
It should jump to line 18.

---

<div class="post-metadata">

### Author: ![RemObjectsSoftware](https://talk.remobjects.com/user_avatar/talk.remobjects.com/remobjectssoftware/32/15947_2.png) [@RemObjectsSoftware](https://talk.remobjects.com/u/RemObjectsSoftware)
#### Post date: [October 13, 2021, 9:17pm UTC](https://talk.remobjects.com/t/wrong-exit-modifier-can-not-find-do-in-the-current-context/25530/2 "2021-10-13T21:17:05Z")

</div>

Logged as [bugs://E25412](https://www.remobjects.com/portal/bugs/?id=E25412).

---

<div class="post-metadata">

### Author: ![RemObjectsSoftware](https://talk.remobjects.com/user_avatar/talk.remobjects.com/remobjectssoftware/32/15947_2.png) [@RemObjectsSoftware](https://talk.remobjects.com/u/RemObjectsSoftware)
#### Post date: [October 14, 2021, 12:35pm UTC](https://talk.remobjects.com/t/wrong-exit-modifier-can-not-find-do-in-the-current-context/25530/3 "2021-10-14T12:35:25Z")

</div>

[bugs://E25412](https://www.remobjects.com/portal/bugs/?id=E25412) was closed as fixed.
