buzz icon indicating copy to clipboard operation
buzz copied to clipboard

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

Open giann opened this issue 3 years ago • 1 comments

[num] numbers = [];
{str, str} map = {};

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

count([]) == 0;

giann avatar Sep 16 '22 12:09 giann

Infer in other contexts:

  • function arguments
  • object properties
  • dot assignment

giann avatar Feb 05 '24 15:02 giann