PLTools / Lama

Teaching language LaMa for a compiler course
GNU General Public License v3.0
70 stars 37 forks source link

Bug in string element access #17

Closed eropsergeev closed 3 years ago

eropsergeev commented 3 years ago

Code: ` local x = "bbbbb", y = 0;

if 1 then x[0] else y fi := 'a';

printf("%s %s\n", x.string, y.string) `

Output: "�" 0

dboulytchev commented 3 years ago

A duplicate for https://github.com/JetBrains-Research/Lama/issues/17.