Originally posted by **PeuTit** May 10, 2023
Creating a new Play application with g8 and the [play-scala-seed.g8 template](https://github.com/playframework/play-scala-seed.g8).
```sh
sbt new playframework/play-scala-seed.g8 --branch 2.9.x
```
I was testing the rewrite capabilities of the compiler with the following options:
```scala
scalacOptions ++= Seq(
"-rewrite",
"-indent",
)
```
Launching a sbt shell & compiling the project, I'm facing the following errors:
```
[info] compiling 7 Scala sources and 1 Java source to /Users/titouan/Documents/work/perso/scala/test-tmp-play-scala3/target/scala-3.3.0-RC5/classes ...
[error] /Users/titouan/Documents/work/perso/scala/test-tmp-play-scala3/app/views/index.scala.html:4:28: Illegal start of toplevel definition
[error]
Welcome to Play!
[error] ^
[error] /Users/titouan/Documents/work/perso/scala/test-tmp-play-scala3/app/views/main.scala.html:12:11: Illegal start of toplevel definition
[error] @* Here's where we render the page title `String`. *@
[error] ^
[error] /Users/titouan/Documents/work/perso/scala/test-tmp-play-scala3/app/views/main.scala.html:25:8: render is already defined as method render in /Users/titouan/Documents/work/perso/scala/test-tmp-play-scala3/target/scala-3.3.0-RC5/twirl/main/views/html/index.template.scala
[error]
[error] Note that overloaded methods must all be defined in the same group of toplevel definitions
[error]
Discussed in https://github.com/lampepfl/dotty/discussions/17453
Welcome to Play!
[error] ^ [error] /Users/titouan/Documents/work/perso/scala/test-tmp-play-scala3/app/views/main.scala.html:12:11: Illegal start of toplevel definition [error] @* Here's where we render the page title `String`. *@ [error] ^ [error] /Users/titouan/Documents/work/perso/scala/test-tmp-play-scala3/app/views/main.scala.html:25:8: render is already defined as method render in /Users/titouan/Documents/work/perso/scala/test-tmp-play-scala3/target/scala-3.3.0-RC5/twirl/main/views/html/index.template.scala [error] [error] Note that overloaded methods must all be defined in the same group of toplevel definitions [error]