bynk.resolve.duplicate_param
Error A parameter name is repeated.
A function's parameters are read by name in its body, and a call passes them in order, so each name may appear once in the list. A repeat is usually two different parameters meant, and the body could see only one of them. Rename one of the two, or remove it.
Example
fn area(w: Int, w: Int) -> Int { w * w } // ✗ `w` declared twice
fn area(w: Int, h: Int) -> Int { w * h } // ✓ distinct namesIn the Book
See also
- The grammar rule it governs:
param. - Every code in its category, Resolution, on the diagnostic index.
bynk explain bynk.resolve.duplicate_paramshows the same from the installed toolchain, without a network.