Skip to content

Commit e2187fe

Browse files
Merge pull request #50 from soronpo/main
remove braces and change import syntax
2 parents fdcb83d + 8a86dad commit e2187fe

File tree

2 files changed

+6
-10
lines changed

2 files changed

+6
-10
lines changed

src/main/g8/src/main/scala/Main.scala

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
1-
@main def hello: Unit = {
2-
println("Hello world!")
3-
println(msg)
4-
}
1+
@main def hello: Unit =
2+
println("Hello world!")
3+
println(msg)
54

65
def msg = "I was compiled by Scala 3. :)"
Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,6 @@
1-
21
import org.junit.Test
3-
import org.junit.Assert._
2+
import org.junit.Assert.*
43

5-
class Test1 {
6-
@Test def t1(): Unit = {
4+
class Test1:
5+
@Test def t1(): Unit =
76
assertEquals("I was compiled by Scala 3. :)", msg)
8-
}
9-
}

0 commit comments

Comments
 (0)