def message
bend-lint-rules@0.2.0.0 · language/forward_reference.bend:25
import bend-lint-rules@0.2.0.0/language/forward_reference.bend as ForwardReference
import Base
25
26
27def message(+used: String, +user: String) -> String:
28 used
29 ++ " is defined below "
30 ++ user
31 ++ ", and Bend checks definitions in file order: live code can use only what is defined above it, so this use fails the check (\"a filled definition\"). Move "
32 ++ used
33 ++ " above "
34 ++ user
35 ++ ". If the two call each other, merge them into one definition with an argument that selects which to run: Bend does not allow mutual recursion. This is a false positive if the use is an argument for an erased parameter (`-x`): that is dead code."