diff options
Diffstat (limited to 'examples')
-rw-r--r-- | examples/dotty-example/src/Main.scala | 3 | ||||
-rw-r--r-- | examples/scalafmt-example/build/build.scala | 2 |
2 files changed, 3 insertions, 2 deletions
diff --git a/examples/dotty-example/src/Main.scala b/examples/dotty-example/src/Main.scala index 1963b51..fdc2068 100644 --- a/examples/dotty-example/src/Main.scala +++ b/examples/dotty-example/src/Main.scala @@ -1,5 +1,6 @@ +package dotty_example object Main extends Foo("Hello Dotty - trait parameters, yay"){ - def main(args: Array[String]) = { + def main(args: Array[String]): Unit = { println(hello) // Sanity check the classpath: this won't run if the dotty jar is not present. diff --git a/examples/scalafmt-example/build/build.scala b/examples/scalafmt-example/build/build.scala index a489616..b8a819b 100644 --- a/examples/scalafmt-example/build/build.scala +++ b/examples/scalafmt-example/build/build.scala @@ -1,7 +1,7 @@ import cbt._ import org.scalafmt.ScalafmtStyle -class Build(val context: Context) extends BuildBuild with Scalafmt { +class Build(val context: Context) extends BaseBuild with Scalafmt { override def compile = { scalafmt super.compile |