* disallow passing WebAssembly reference types as untyped out parameters as well

This commit is contained in:
Nikolay Nikolov 2023-06-11 08:58:03 +03:00
parent 6ff566350c
commit 64569df017

View File

@ -0,0 +1,21 @@
{ %cpu=wasm32 }
{ %fail }
program twasmexternref4f;
{$MODE objfpc}
procedure testproc(out p);
begin
end;
procedure testproc2;
var
q: WasmExternRef;
begin
{ WasmExternRef cannot be passed as an untyped out parameter }
testproc(q);
end;
begin
end.