Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var dictionary: [String : Any]
- dictionary = ["A" : ["B" : 10, "C" : 20] as Dictionary]
- // error: cannot assign to immutable expression of type 'Int?'
- (dictionary["A"] as! Dictionary<String,Int>)["B"] = 30
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement