(n int)
| 460 | } |
| 461 | |
| 462 | func fib(n int) int { |
| 463 | if n <= 1 { |
| 464 | return n |
| 465 | } |
| 466 | return fib(n-1) + fib(n-2) |
| 467 | } |
| 468 | |
| 469 | func ExampleConstExpr() { |
| 470 | code := `[fib(5), fib(3+3), fib(dyn)]` |
nothing calls this directly
no outgoing calls
no test coverage detected