We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents fdcb83d + 8a86dad commit e2187feCopy full SHA for e2187fe
src/main/g8/src/main/scala/Main.scala
@@ -1,6 +1,5 @@
1
-@main def hello: Unit = {
2
- println("Hello world!")
3
- println(msg)
4
-}
+@main def hello: Unit =
+ println("Hello world!")
+ println(msg)
5
6
def msg = "I was compiled by Scala 3. :)"
src/main/g8/src/test/scala/Test1.scala
@@ -1,9 +1,6 @@
-
import org.junit.Test
-import org.junit.Assert._
+import org.junit.Assert.*
-class Test1 {
- @Test def t1(): Unit = {
+class Test1:
+ @Test def t1(): Unit =
7
assertEquals("I was compiled by Scala 3. :)", msg)
8
- }
9
0 commit comments