From af0baa101a69b53935c8b3f5b901016f1403ed9a Mon Sep 17 00:00:00 2001 From: Matt Thalman Date: Mon, 1 May 2023 09:43:52 -0500 Subject: [PATCH] Runtime patch: Fix cast type to conform to Roslyn API (#16262) (#16263) --- ...x-cast-type-to-conform-to-Roslyn-API.patch | 23 +++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 src/SourceBuild/patches/runtime/0004-Fix-cast-type-to-conform-to-Roslyn-API.patch diff --git a/src/SourceBuild/patches/runtime/0004-Fix-cast-type-to-conform-to-Roslyn-API.patch b/src/SourceBuild/patches/runtime/0004-Fix-cast-type-to-conform-to-Roslyn-API.patch new file mode 100644 index 000000000..f687d168f --- /dev/null +++ b/src/SourceBuild/patches/runtime/0004-Fix-cast-type-to-conform-to-Roslyn-API.patch @@ -0,0 +1,23 @@ +From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001 +From: Matt Thalman +Date: Thu, 27 Apr 2023 09:51:08 -0500 +Subject: [PATCH] Fix cast type to conform to Roslyn API + +Backport: https://github.com/dotnet/runtime/pull/85466 +--- + .../gen/ComInterfaceGenerator/InlinedTypes.cs | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/src/libraries/System.Runtime.InteropServices/gen/ComInterfaceGenerator/InlinedTypes.cs b/src/libraries/System.Runtime.InteropServices/gen/ComInterfaceGenerator/InlinedTypes.cs +index cb55e36b32c..ef2fe4f6d65 100644 +--- a/src/libraries/System.Runtime.InteropServices/gen/ComInterfaceGenerator/InlinedTypes.cs ++++ b/src/libraries/System.Runtime.InteropServices/gen/ComInterfaceGenerator/InlinedTypes.cs +@@ -53,7 +53,7 @@ static BlockSyntax Body() + GenericName( + Identifier("GetInstance"), + TypeArgumentList( +- SeparatedList( ++ SeparatedList( + new[] { PredefinedType(Token(SyntaxKind.ObjectKeyword)) }))))) + .AddArgumentListArguments( + Argument(