Make FE1.0 report tailrec diagnostics on the keyword

This commit is contained in:
Tianyu Geng
2021-09-27 11:37:00 -07:00
committed by teamcityserver
parent 5252effb10
commit a5435c0efc
7 changed files with 27 additions and 27 deletions
+2 -2
View File
@@ -22,7 +22,7 @@ class Bar {
this.bar2()
}
<!NO_TAIL_CALLS_FOUND!>tailrec fun bar3()<!> {
<!NO_TAIL_CALLS_FOUND!>tailrec<!> fun bar3() {
Bar.<!NON_TAIL_RECURSIVE_CALL!>bar3<!>()
}
@@ -44,7 +44,7 @@ enum class E {
}
},
C {
<!NO_TAIL_CALLS_FOUND!>override tailrec fun rec()<!> {
override <!NO_TAIL_CALLS_FOUND!>tailrec<!> fun rec() {
C.rec() // resolution goes to `E.rec`. Hence the resolved symbol is considered different from `C.rec`.
}
};