Skip to content
TE150 · Type · error

`@inline` declaration has no Zolo body

Inline expansion requires a real Zolo body; native and plugin declarations must use a Zolo wrapper.

@inline expands a real Zolo function body at a statically resolved call site. A declaration backed only by @native or @plugin has no body the compiler can clone.

Remove @inline, or add a small Zolo wrapper with a body and place the inline policy on that wrapper.

@inline(always)
fn hash(value: str) -> int {
  crypto::native_hash(value)
}

Here crypto::native_hash is a qualified declaration supplied by the native module; the wrapper itself remains ordinary Zolo source.

See the typed inline specification.

Search Zolo

9 results

en