aardappel / lobster

The Lobster Programming Language
http://strlen.com/lobster
2.25k stars 119 forks source link

Add argument types to 'multiple overloads' error message #199

Closed bartwe closed 2 years ago

aardappel commented 2 years ago

Useful, thanks.. would be good to follow (or improve) the format of the very similar code in NatCallError which also shows all overloads it is matching

aardappel commented 2 years ago
typecheck.h:1516:34: error: comparison of integer expressions of different signedness: ‘int’ and ‘size_t’ {aka ‘long unsigned int’} [-Werror=sign-compare]
 1516 |                 for (int a = 0; a< f.nargs(); a++) {
      |                                 ~^~~~~~~~~~~

probably need size_t

Also the < has funny formatting

aardappel commented 2 years ago

Great!