Skip to content

Commit 3e3ce5b

Browse files
committed
Reorder MainAnnot members
1 parent 9ca7e5c commit 3e3ce5b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

tests/pos/main-method-scheme-class-based.scala

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,9 @@ trait MainAnnotation extends StaticAnnotation:
2121
/** The required result type of the main function */
2222
type ResultType
2323

24+
/** A new command with arguments from `args` */
25+
def command(args: Array[String]): Command
26+
2427
/** A class representing a command to run */
2528
abstract class Command:
2629

@@ -35,9 +38,6 @@ trait MainAnnotation extends StaticAnnotation:
3538
*/
3639
def run(f: => ResultType, progName: String, docComment: String): Unit
3740
end Command
38-
39-
/** A new command with arguments from `args` */
40-
def command(args: Array[String]): Command
4141
end MainAnnotation
4242

4343
//Sample main class, can be freely implemented:

0 commit comments

Comments
 (0)