buzz-language / buzz

👨‍🚀 buzz, A small/lightweight statically typed scripting language
https://buzz-lang.dev
MIT License
1.16k stars 32 forks source link

Infer empty list/map type in other contexts than variable declaration #86

Open giann opened 1 year ago

giann commented 1 year ago
[num] numbers = [];
{str, str} map = {};

fun count([str] list) > num -> list.len();

count([]) == 0;
giann commented 5 months ago

Infer in other contexts: