Skip to content

Commit 8cd6337

Browse files
committed
Augment returns test
1 parent 0c57527 commit 8cd6337

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

tests/run/returns.scala

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
def foo(x: Int): Int =
22
if x == 1 then
33
return
4-
x
4+
val y = 2
5+
x + y
56
else
67
2
78

@@ -10,7 +11,7 @@ def bar(): Unit =
1011
assert(false)
1112

1213
@main def Test =
13-
assert(foo(1) == 1)
14+
assert(foo(1) == 3)
1415
bar()
1516

1617

0 commit comments

Comments
 (0)