File tree Expand file tree Collapse file tree 6 files changed +37
-0
lines changed Expand file tree Collapse file tree 6 files changed +37
-0
lines changed Original file line number Diff line number Diff line change
1
+ Hello
Original file line number Diff line number Diff line change
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
+ }
Original file line number Diff line number Diff line change
1
+ Hello
Original file line number Diff line number Diff line change
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" ) }
Original file line number Diff line number Diff line change
1
+ Hello
2
+ apply
Original file line number Diff line number Diff line change
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
+ }
You can’t perform that action at this time.
0 commit comments