Closed krame505 closed 5 months ago
When we implement #454, one may wish to write main as a "concise function", which will be an extension that just forwards to a global:
main
fun main IO<Integer> ::= args::[String] = do { print("Hello, world");\n return 0; };
So we should tweak the translation for globals named main to check that it has the right signature, and generate the main class declaration.
Tentatively assigning this to @unironically since this is related to #454.
With #827, we don't really care as much about main being a global. But signature checking and automatic generation of a main class should happen for concise functions named main, too.
When we implement #454, one may wish to write
main
as a "concise function", which will be an extension that just forwards to a global:So we should tweak the translation for globals named
main
to check that it has the right signature, and generate the main class declaration.Tentatively assigning this to @unironically since this is related to #454.