x
と y
を持った Int
と Double
という定数にそれぞれ 1
と 2
が代入されててInt
です)let (x: Int, y: Double): (Int, Int) = (1, 2) let s = Int + Double
1> let (x: Int, y: Double) = (1, 2) 2. let s = Int + Double Int: Int = 1 Double: Int = 2 s: Int = 3
1> let (x: Int, y: Double): (Int, Int) = (1, 2) 2. let s = Int + Double error: repl.swift:1:6: error: tuple pattern element label 'x' must be '_' let (x: Int, y: Double): (Int, Int) = (1, 2) ^