krzema12 / kotlin-python

Python target for the Kotlin Programming Language. See https://github.com/krzema12/kotlin-python/tree/python-backend/python
https://discuss.kotlinlang.org/t/idea-python-backend/19852
47 stars 1 forks source link

[#74] Implement 'main' function #113

Closed krzema12 closed 2 years ago

krzema12 commented 2 years ago

Both argumentless and "argumentful" function is supported.

Testing

Tried to run the generated output, and t

he control flow correctly goes to main.

Here's how it works for argumentless function: Screenshot from 2022-02-18 10-16-25

SerVB commented 2 years ago

Should we also now close #74? Or maybe add a test for it before closing?

krzema12 commented 2 years ago

@SerVB yeah, I'm thinking of an e2e test, then I'll resolve it.