Skip to content

Commit d20314f

Browse files
committed
Fix test failures in tailcall due to name clashes.
1 parent 7cd8257 commit d20314f

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

tests/neg/tailcall/i1221.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import annotation.tailrec
22

3-
object Test{
3+
object I1221{
44
final def foo(a: Int): Int = {
55
if ((foo(a - 1): @tailrec) > 0) // error: not in tail position
66
foo(a - 1): @tailrec

tests/pos/tailcall/i1221.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import annotation.tailrec
22

3-
object Test{
3+
object i1221{
44
final def foo(a: Int): Int = {
55
if (foo(a - 1) > 0)
66
foo(a - 1): @tailrec

0 commit comments

Comments
 (0)