Closed ZiyaoWei closed 5 months ago
Indeed. We need to explain that imports should be at the expression level.
Might also worth it to add more examples to this chapter - I am trying to write some scripts in Flix and it took me a while to figure out, e.g., how to import a static method, and how to import a static inner class.
Please do! Contributions welcome!
E.g., the example from https://doc.flix.dev/creating-objects.html
does not build with 0.41 as is:
Wrapping it in
def main(): Unit \ IO = ...
works, but it is not super obvious.