native-outside-std

`native` is used outside `std/`.

compile error, shown by synod check.

native binds a pattern to a primitive of the runtime, and only packages under std/ may do that. Write the phrase with a body.

Example

Check this program to see the diagnostic.

# package p
define Raw [n: number] native "sim.seed"

Diagnostic

p/p.synod:2:24: error[native-outside-std]: "native" is only allowed in std packages

Fix

Write the body in Synod.

# package p
define Raw [n: number]
  result n