[runtime] Throw a MarshalDirectiveException when returning an array from a pinvoke...
commitf9db252a5ffcf0aba3bc31092caa73098a2e419e
authorZoltan Varga <vargaz@gmail.com>
Thu, 24 Sep 2020 03:19:07 +0000 (23 23:19 -0400)
committerGitHub <noreply@github.com>
Thu, 24 Sep 2020 03:19:07 +0000 (23 23:19 -0400)
tree2b0be4017114aaaeca3f68bc19405600283fab28
parenta87bb0d1d3eed31eec4d938922ab36ea4dda81c6
[runtime] Throw a MarshalDirectiveException when returning an array from a pinvoke method. (#20425)

Fixes https://github.com/mono/mono/issues/20367.
mono/metadata/marshal-ilgen.c
mono/tests/libtest.c
mono/tests/pinvoke2.cs