-
What is wrong? With def instead of fn it works properly fn main():
for i in range(1, 11):
print(i * 5)
main() _error: Expression [10]:19:9: ambiguous call to 'main', each candidate requires 0 implicit conversions, disambiguate with an explicit cast Expression [10]:5:1: candidate declared here Expression [9]:5:1: candidate declared here |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
This is because the workbook is wrapping the top level code in a main() function, which yours conflicts with. You can workaround by choosing a different name. @River707 Do you have any ideas on how to approach this or improve the error message? |
Beta Was this translation helpful? Give feedback.
This is because the workbook is wrapping the top level code in a main() function, which yours conflicts with. You can workaround by choosing a different name.
@River707 Do you have any ideas on how to approach this or improve the error message?