Skip to content

Instantly share code, notes, and snippets.

@prolativ
Last active August 3, 2022 15:31
Show Gist options
  • Save prolativ/d2d80140ece69adc30e0120d1ed8db0d to your computer and use it in GitHub Desktop.
Save prolativ/d2d80140ece69adc30e0120d1ed8db0d to your computer and use it in GitHub Desktop.
//> using target.scala "2"
object Greating {
def greating = "Hello Scala 2"
}
//> using target.scala "3"
object Greating:
def greating = "Hello Scala 3"
object Hello {
def main(args: Array[String]): Unit = println(Greating.greating)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment