As I was learning Scala 3, I saw a new way to write main:
@main def main1 =
println("main1 printed something")
I checked source for @main, it is just
class main extends scala.annotation.Annotation {}
What is happening by using @main here?