vtereshkov / umka-lang

Umka: a statically typed embeddable scripting language
BSD 2-Clause "Simplified" License
1k stars 53 forks source link

`[]` instead of `[]T` in error messages in `printf()` #378

Closed vtereshkov closed 3 months ago

vtereshkov commented 3 months ago
fn main() {
        printf("%s\n", []char{'a'})  // Incompatible types str and [] in printf()
}
vtereshkov commented 3 months ago

Fixed for printf(), but not for scanf(), as scanf() doesn't have full type information at runtime.