They have done this in Seattle for the first hill streetcar [1], with let's say limited success [2][3]
[1] https://en.wikipedia.org/wiki/First_Hill_Streetcar#Vehicles [2] https://www.king5.com/article/news/local/sdot-pulls-first-hi... [3]https://www.seattletimes.com/seattle-news/transportation/sea...