Advertisement
Guest User

Untitled

a guest
Aug 31st, 2016
75
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.20 KB | None | 0 0
  1. var dictionary: [String : Any]
  2.  
  3. dictionary = ["A" : ["B" : 10, "C" : 20] as Dictionary]
  4.  
  5. // error: cannot assign to immutable expression of type 'Int?'
  6. (dictionary["A"] as! Dictionary<String,Int>)["B"] = 30
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement