# Tutorial 2 - Error at super.init(coder: aDecoder)

**URL:** <https://forums.kodeco.com/t/tutorial-2-error-at-super-init-coder-adecoder/15326>\
**Category:** iOS Apprentice\
**Created:** [May 29, 2016, 6:20am UTC](https://forums.kodeco.com/t/tutorial-2-error-at-super-init-coder-adecoder/15326 "2016-05-29T06:20:56Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![djcirello](https://s3.amazonaws.com/cdn.raywenderlich.com/community/forum-assets/noun-game-ghost-878668.png) [@djcirello](https://forums.kodeco.com/u/djcirello)\
**Post date:** [May 29, 2016, 6:20am UTC](https://forums.kodeco.com/t/tutorial-2-error-at-super-init-coder-adecoder/15326/1 "2016-05-29T06:20:56Z")

</div>

Hello,

Working my way through the 2nd Tutorial and I’m coming across the following error when trying to call the super. “Property ‘self.row0item’ not initialized at super.init call”. Code below. Can someone point me in the right direction?

Thank you,  
Darin

> var items: [ChecklistItem]
> 
> ```
> required init?(coder aDecoder: NSCoder) {
> items = [ChecklistItem]()
>     
> let row0item = ChecklistItem()
> row0item.text = "Walk the dog"
> row0item.checked = false
> items.append(row0item)
>     
> let row1item = ChecklistItem()
> row1item.text = "Brush my teeth"
> row1item.checked = true
> items.append(row1item)
>     
> let row2item = ChecklistItem()
> row2item.text = "Learn iOS development"
> row2item.checked = true
> items.append(row2item)
>     
> let row3item = ChecklistItem()
> row3item.text = "Soccer practice"
> row3item.checked = false
> items.append(row3item)
>     
> let row4item = ChecklistItem()
> row4item.text = "Eat ice cream"
> row4item.checked = true
> items.append(row4item)
>     
> super.init(coder: aDecoder) // Error: Property 'self.row0item' not initialized at super.init call
> }
> 
> ```

---

<div class="post-metadata">

**Author:** ![narrativium](https://assets.chunter.kodeco.com/user_avatar/forums.kodeco.com/narrativium/32/110937_2.png) [@narrativium](https://forums.kodeco.com/u/narrativium)\
**Post date:** [May 29, 2016, 9:34pm UTC](https://forums.kodeco.com/t/tutorial-2-error-at-super-init-coder-adecoder/15326/2 "2016-05-29T21:34:33Z")

</div>

You have a line of code in that init function starting `let row0item`. This is a local variable - it only exists inside the init function. It’s _not_ setting a value to the property called `row0item` in your type. To do that, you either need to remove the `let`, so you’re only working with the property, or you need to create the local `row0item` variable and assign the result to the type property afterwards (before the super.init) with `self.row0item = row0item` (the ‘self’ is necessary to disambiguate between the two identically named variables).

---

<div class="post-metadata">

**Author:** ![djcirello](https://s3.amazonaws.com/cdn.raywenderlich.com/community/forum-assets/noun-game-ghost-878668.png) [@djcirello](https://forums.kodeco.com/u/djcirello)\
**Post date:** [May 31, 2016, 4:18am UTC](https://forums.kodeco.com/t/tutorial-2-error-at-super-init-coder-adecoder/15326/3 "2016-05-31T04:18:59Z")

</div>

Thank you! This solved my problem. So it was scope that killed me. ☹
