-
-
Notifications
You must be signed in to change notification settings - Fork 427
Open
Description
compiling 3 Scala sources to out/mill-build/compile.dest/classes ...
8714] done compiling
8714] Compiling compiler interface...
8714] compiling 1 Scala source to out/Foo.scala/compile0.dest/classes ...
8714] [error] Foo.scala:17:1
8714] type main = mainargs.main; def _millScriptMainSelf = this; object _MillScriptMain { def main(args: Array[String]): Unit = this.getClass.getMethods.find(m => m.getName == "main" && m.getParameters.map(_.getType) == Seq(classOf[Array[String]]) && m.getReturnType == classOf[Unit]) match{ case Some(m) => m.invoke(_millScriptMainSelf, args); case None => mainargs.Parser(_millScriptMainSelf).runOrExit(args) }}
8714] ^
8714] expected class or object definition
8714]
8714] [error] Foo.scala:17:28
8714] type main = mainargs.main; def _millScriptMainSelf = this; object _MillScriptMain { def main(args: Array[String]): Unit = this.getClass.getMethods.find(m => m.getName == "main" && m.getParameters.map(_.getType) == Seq(classOf[Array[String]]) && m.getReturnType == classOf[Unit]) match{ case Some(m) => m.invoke(_millScriptMainSelf, args); case None => mainargs.Parser(_millScriptMainSelf).runOrExit(args) }}
8714] ^
8714] expected class or object definition
8714]
8714] [error] two errors found
8714] [error] Foo.scala:compile0 Compilation failed
Metadata
Metadata
Assignees
Labels
No labels