vrchat-community / UdonSharp

A compiler for compiling C# to Udon assembly
https://udonsharp.docs.vrchat.com
MIT License
470 stars 50 forks source link

Fix string composite assignment #29

Closed ureishi closed 1 year ago

ureishi commented 2 years ago

Fixes an issue where compound assignments containing strings cause an error at runtime. Call string.Concat if either the left or right side is something other than string. Convert the right side to string in advance if that is other than string and is a constant.