Last active
August 3, 2022 15:31
-
-
Save prolativ/d2d80140ece69adc30e0120d1ed8db0d to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//> using target.scala "2" | |
object Greating { | |
def greating = "Hello Scala 2" | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//> using target.scala "3" | |
object Greating: | |
def greating = "Hello Scala 3" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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