Skip to content

Commit ec3b3e1

Browse files
committed
Add tests
1 parent 511caeb commit ec3b3e1

File tree

6 files changed

+37
-0
lines changed

6 files changed

+37
-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: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
object Test {
2+
def foo: Unit = {
3+
object bar { println("Hello") }
4+
bar
5+
}
6+
7+
def main(args: Array[String]): Unit = {
8+
foo
9+
}
10+
}

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: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
object Test {
2+
def foo: Unit = {
3+
bar
4+
}
5+
6+
def main(args: Array[String]): Unit = {
7+
foo
8+
}
9+
}
10+
object bar { println("Hello") }

tests/run/i5350d.check

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

tests/run/i5350d.scala

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

0 commit comments

Comments
 (0)