Crystal's compiler warns when an overriding method's parameter name differs from the parent's, since named-argument callers would pass the wrong slot. Underscore-prefix was meant as 'unused' but it changed the parameter name, which Crystal correctly flagged. Match the parent signature (s : Domain::NewSecret) and use the explicit '_ = s' idiom inside the body to mark it intentionally unused. Now 'shards build cre' compiles with zero warnings. |
||
|---|---|---|
| .. | ||
| advanced | ||
| beginner | ||
| intermediate | ||