E4008 Names Errors

Names

main() cannot have parameters or a return type; it must be declared as do main() { }

When this occurs

With `using`, function in multiple modules

Example error message

error[E4008]: function 'len' found in multiple modules: arrays, strings

How to fix

Use the module prefix to disambiguate: `module.function()` instead of just `function()`.

Related errors

No related errors.