Skip to content
ZOLO / TE181 Type · error

extern signature needs concrete types

Compiler diagnostic TE181: extern signature needs concrete types.

Why this fires

Foreign function adapters need concrete parameter types. An untyped parameter, destructured parameter, variadic parameter, or an open generic signature cannot describe the foreign calling convention unambiguously.

use plugin dotnet::{csharp}
extern csharp fn twice(value) -> int { return value * 2; }

Fix it

Write an ordinary typed Zolo signature:

extern csharp fn twice(value: int) -> int { return value * 2; }

Bind generic foreign methods with a concrete signature. Callbacks use ordinary function types such as fn(int) -> int.

Global index

Find your way through Zolo

Try an idea

Start here

9 results

9 results

en