From bf69531216db1e7f341a5d8a0b63e3933cba5438 Mon Sep 17 00:00:00 2001 From: Lucas Trzesniewski Date: Sat, 1 Jul 2023 18:54:50 +0200 Subject: [PATCH] Fix #3025: Annotate nested types --- ICSharpCode.Decompiler/CSharp/Syntax/TypeSystemAstBuilder.cs | 1 + 1 file changed, 1 insertion(+) diff --git a/ICSharpCode.Decompiler/CSharp/Syntax/TypeSystemAstBuilder.cs b/ICSharpCode.Decompiler/CSharp/Syntax/TypeSystemAstBuilder.cs index f92dc9f1b6..708ff92e69 100644 --- a/ICSharpCode.Decompiler/CSharp/Syntax/TypeSystemAstBuilder.cs +++ b/ICSharpCode.Decompiler/CSharp/Syntax/TypeSystemAstBuilder.cs @@ -538,6 +538,7 @@ AstType ConvertTypeHelper(IType genericType, IReadOnlyList typeArguments) { // Handle nested types result.Target = ConvertTypeHelper(genericType.DeclaringType, typeArguments); + AddTypeAnnotation(result.Target, genericType.DeclaringType); } else {