You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix: Add variadic parameter support and fix type conversion functions
- Add IsVariadic property to ParameterSymbol for params array handling
- Update CachedModuleDiscovery to extract element type from variadic parameters
- Update overload resolution in TypeChecker to handle variadic functions
- Filter candidates properly considering variadic arg count (0+ args)
- Type check variadic args against element type, not array type
- Fix code generation to treat builtin functions as invocations, not constructors
- int(x), str(x), etc. now emit function calls, not 'new' expressions
- Fix SymbolTable to not add function symbols that shadow type names
- Prevents int function from overwriting int type in symbol table
This fixes:
- print() accepting any number of arguments (variadic)
- int(), float(), str() type conversion functions working properly
- Builtin function overload resolution with multiple candidates
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
0 commit comments