Skip to content

Commit 620a81d

Browse files
committed
Add tests
1 parent 511caeb commit 620a81d

File tree

4 files changed

+30
-0
lines changed

4 files changed

+30
-0
lines changed

tests/run/i5350b.check

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Hello

tests/run/i5350b.scala

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
object Test {
2+
def foo: Unit = {
3+
object bar {
4+
println("Hello")
5+
def baz: Int = 1
6+
}
7+
import bar._
8+
baz
9+
}
10+
11+
def main(args: Array[String]): Unit = {
12+
foo
13+
}
14+
}

tests/run/i5350c.check

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Hello

tests/run/i5350c.scala

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
object Test {
2+
def foo: Unit = {
3+
import bar._
4+
baz
5+
}
6+
7+
def main(args: Array[String]): Unit = {
8+
foo
9+
}
10+
}
11+
object bar {
12+
println("Hello")
13+
def baz: Int = 1
14+
}

0 commit comments

Comments
 (0)