This code worked just fine in Swift 2.3 and I don\'t understand why I have to unwrap TestClass
to check if number is bigger than 4. This is whole point of chain
This could also happen on Guard statement. Example:
var playerLevels = ["Harry": 25, "Steve": 28, "Bob": 0]
for (playerName, playerLevel) in playerLevels {
guard playerLevels > 0 else {//ERROR !!
print("Player \(playerName) you need to do the tutorial again !")
continue
}
print("Player \(playerName) is at Level \(playerLevels)")
}