I'm trying to save two dictionary into one array in swift but I get error because they have different type, is a way to just add generic type, here is my code
var resolved = Dictionary<String,T -> Void>()
resolved = [ "fulfill": fulfill]
var rejectDic = Dictionary<String,NSError -> Void>()
rejectDic = [ "reject": reject]
var test = [resolved,rejectDic]
T?