[FIR-TEST] Add new testdata generated after changes in previous commit
This commit is contained in:
@@ -0,0 +1,16 @@
|
||||
object O {
|
||||
// This is correct, foo is the same
|
||||
tailrec fun foo(i: Int): Int = if (i < 0) 0 else O.foo(i - 1)
|
||||
}
|
||||
|
||||
class A {
|
||||
tailrec fun foo(i: Int) = if (i < 0) 0 else A.foo(i - 1)
|
||||
|
||||
companion object {
|
||||
fun foo(i: Int) = 42 + i
|
||||
}
|
||||
}
|
||||
|
||||
class B {
|
||||
tailrec fun foo(i: Int) = if (i < 0) 0 else O.foo(i - 1)
|
||||
}
|
||||
Reference in New Issue
Block a user