let numberOne: Int = 123
let numberTwo: Double = 123
let numberThree: UInt = -123 Negative integer '-123' overflows when stored into unsigned type 'UInt'
let character: Character = 'A' Single-quoted string literal found, use '"'
let string: String = "A"
var arrayOne: Array<Int> = [1,2,3]
var arrayTwo: [Int] = Array<Int>()
var arrayThree:[Int] = [Int] Cannot convert value of type '[Int].Type' to specified type '[Int]'
var dictionaryOne: Dictionary<String> = Dictionary<String>() Generic type 'Dictionary' specialized with too few type parameters (got 1, but expected 2)
var dictionary:[String:Int]=["key":100]
'Programming > Swift' 카테고리의 다른 글
타입: Structures (구조체) and Classes (클래스) vs. Enumerations (열거형) (0) | 2021.03.11 |
---|---|
continue vs. return vs. break (0) | 2021.03.04 |
if let vs. guard let (0) | 2021.03.04 |
GCD Concepts (0) | 2021.02.10 |
[ios] Self-Sizing Table View Cells (0) | 2021.01.22 |