Avatar
↓コンパイル通るけど実行時に死ぬ。 let makeDict: ((String, Int)...) -> [String: Int] = Dictionary.init let dict: [String: Int] = (makeDict as! ([(String, Int)]) -> [String: Int])([ ("a", 2), ("b", 3), ("c", 5) ]) print(dict)