I just created a class and gave it some vars. Unfortunately I can\'t access these variables in my iOS-Projects. However, the same syntax works in playground...<
Your declaration of ViewController includes rex.age = 2 which itself is not a declaration, it is a statement - specifically a binary expression with an infix operator.