+func a() { // expected-warning {{all paths through this function will call itself}} + a() +} + +func b(_ x : Int) { // expected-warning {{all paths through this function will call itself}} + if x != 0 { + b(x) + } else { + b(x+1) + } +}
+// Doesn't warn on mutually recursive functions + +func e() { f() } +func f() { e() }
とりあえず相互再帰はだめみたい