# Named Subscript parameters

**URL:** https://talk.remobjects.com/t/named-subscript-parameters/19437
**Category:** Elements Bugs
**Tags:** silver
**Created:** [May 14, 2019, 12:15am UTC](https://talk.remobjects.com/t/named-subscript-parameters/19437 "2019-05-14T00:15:49Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![dbroggi](https://talk.remobjects.com/letter_avatar_proxy/v4/letter/d/df788c/32.png) [@dbroggi](https://talk.remobjects.com/u/dbroggi)
#### Post date: [May 14, 2019, 12:15am UTC](https://talk.remobjects.com/t/named-subscript-parameters/19437/1 "2019-05-14T00:15:49Z")

</div>

**IDE:** _Visual Studio X/Fire_  
**Version:** _10.0.0.2399 (develop)_  
**Target** (If relevant): _OSX_  
**Description** :  
Subscript declarations with named parameters are accepted, but the parser cannot parse them being called.

**Expected Behavior** :  
Compiles.  
**Actual Behavior** :  
“E: closing block expected, got colon [\<file\> (\<line\>)]”  
**Steps** :

```auto
struct F {
    subscript(x y: Int) -> Int {
        return y
    }
}
let f = F()
f[x: 5] // Error Here

```

---

<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: [May 14, 2019, 4:59am UTC](https://talk.remobjects.com/t/named-subscript-parameters/19437/2 "2019-05-14T04:59:10Z")

</div>

Thanks, logged as bugs://82585

---

<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: [May 14, 2019, 10:55am UTC](https://talk.remobjects.com/t/named-subscript-parameters/19437/3 "2019-05-14T10:55:12Z")

</div>

bugs://82585 got closed with status fixed.
