Oh it would add sweetness. That is what onions will do if prepared properly It just seems odd and I prefer savory/hot.
Why not add icecream ;)
I suddenly have a strange urge to visit Wendy’s