diff options
Diffstat (limited to 'test/Mono.Linker.Tests.Cases/DataFlow/MethodReturnParameterDataFlow.cs')
-rw-r--r-- | test/Mono.Linker.Tests.Cases/DataFlow/MethodReturnParameterDataFlow.cs | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/test/Mono.Linker.Tests.Cases/DataFlow/MethodReturnParameterDataFlow.cs b/test/Mono.Linker.Tests.Cases/DataFlow/MethodReturnParameterDataFlow.cs index f66a25e74..c0925a264 100644 --- a/test/Mono.Linker.Tests.Cases/DataFlow/MethodReturnParameterDataFlow.cs +++ b/test/Mono.Linker.Tests.Cases/DataFlow/MethodReturnParameterDataFlow.cs @@ -126,7 +126,12 @@ namespace Mono.Linker.Tests.Cases.DataFlow { var array = new object[1]; array[0] = this.GetType (); + MakeArrayValuesUnknown (array); return (Type) array[0]; + + static void MakeArrayValuesUnknown (object[] array) + { + } } [UnrecognizedReflectionAccessPattern (typeof (MethodReturnParameterDataFlow), nameof (RequirePublicConstructors), new Type[] { typeof (Type) }, messageCode: "IL2072")] |