Why this fires¶
The provider in an extern declaration must be a name explicitly imported
from a native plugin. Provider names are ordinary bindings.
extern csharp fn add(a: int, b: int) -> int { return a + b; }Fix it¶
Import the provider before using it:
use plugin dotnet::{csharp}
extern csharp fn add(a: int, b: int) -> int { return a + b; }If you imported a differently named provider, use that binding in the header. The diagnostic and rename suggestion point at the provider identifier.