[runtime] Throw a MarshalDirectiveException when returning an array from a pinvoke...
authormonojenkins <jo.shields+jenkins@xamarin.com>
Thu, 24 Sep 2020 03:19:22 +0000 (23:19 -0400)
committerGitHub <noreply@github.com>
Thu, 24 Sep 2020 03:19:22 +0000 (23:19 -0400)
commit886cadea8633ef93cc202a102b9b46ec2ba231d4
tree45b3ed2564e964abeab9ef152ff03d638f1be621
parent3b6600cbefe6b96706c5315ce184accbb4501f3b
[runtime] Throw a MarshalDirectiveException when returning an array from a pinvoke method. (#42631)

Fixes https://github.com/mono/mono/issues/20367.

Co-authored-by: vargaz <vargaz@users.noreply.github.com>
src/mono/mono/metadata/marshal-ilgen.c
src/mono/mono/tests/libtest.c
src/mono/mono/tests/pinvoke2.cs