Hi I'm trying to declare a simple array variable inside class ViewController. But when I try to append value to it, Xcode just keep giving me "Consecutive declarations on a line must be separated by ';' ... Invalid redeclaration of 'mylist()'"
var mylist = [String] ()
mylist.append("abc")
I copied it into the Playground and it works just fine. But somehow inside ViewController it just doesn't like it. I only have 1 line that declares mylist in the whole project. Has any one experienced this? I can't see what's wrong with it. I'm in XCode 11.5(11E608c) Thx in advance.