On Maroon Lake the prune gave home_keep_records(base_app_st, home_st, r: RunRecords, save_app_st) a second save_app_st at the front, and every call a second argument: a state declared after a plain parameter was not counted as declared. It is now, and a call to such a function is never given the state again. `ludic build --check` let the duplicate through and clang refused it; the checker now refuses a function that names two parameters alike (`add names two parameters n`). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
5 lines
179 B
Text
5 lines
179 B
Text
# a parameter named twice is refused where it is written
|
|
program ParamTwice {
|
|
function add(n: int, k: int, n: int) -> int { return n + k }
|
|
entry { print(`{add(1, 2, 3)}`) }
|
|
}
|