Browse Source

Add pretty test for generic attributes with constructed type arguments

Generic attributes were only closed over simple types; constructed
generic, array, and enum type arguments exercise separate paths in
the custom-attribute blob decoder.

Assisted-by: Claude:claude-fable-5:Claude Code
pull/3857/head
Siegfried Pammer 4 days ago committed by Siegfried Pammer
parent
commit
c0b85c5dde
  1. 7
      ICSharpCode.Decompiler.Tests/TestCases/Pretty/CustomAttributes.cs

7
ICSharpCode.Decompiler.Tests/TestCases/Pretty/CustomAttributes.cs

@ -170,6 +170,13 @@ namespace CustomAttributes
public static void UseGenericAttributeWithArg() public static void UseGenericAttributeWithArg()
{ {
} }
[Generic<List<int>>]
[Generic<Dictionary<string, List<int>>>]
[Generic<int[]>]
[Generic<StringComparison>(StringComparison.Ordinal)]
public static void UseGenericAttributeWithComplexTypes()
{
}
#endif #endif
} }
} }

Loading…
Cancel
Save