Swift Error: Variable used within its own initial value

后端 未结 4 1424
灰色年华
灰色年华 2020-12-24 01:37

When I\'m initializing an instance of an entity I\'m getting the error Variable used within its own initial value.

Here is the code throwing the error:<

4条回答
  •  一整个雨季
    2020-12-24 02:10

    You have a function parameter called word in scope and you're trying to create a constant with the same name. Name your constant something other than word.

提交回复
热议问题