cincheo / jsweet

A Java to JavaScript transpiler.
http://www.jsweet.org
Other
1.46k stars 158 forks source link

assignop on string with char concats char code instead of char #481

Closed lgrignon closed 6 years ago

lgrignon commented 6 years ago
String ok = "";
ok = ok + (char)(97);
console.log(ok); //works, prints 'a'
String msg = "";
msg += (char)(97);
console.log(msg); //doesn't work, += results in 97