Browse Source

Fix [DecimalConstant] parameters

pull/1425/head
Daniel Grunwald 7 years ago
parent
commit
0238e645db
  1. 2
      ICSharpCode.Decompiler/TypeSystem/Implementation/AttributeListBuilder.cs

2
ICSharpCode.Decompiler/TypeSystem/Implementation/AttributeListBuilder.cs

@ -199,7 +199,7 @@ namespace ICSharpCode.Decompiler.TypeSystem.Implementation @@ -199,7 +199,7 @@ namespace ICSharpCode.Decompiler.TypeSystem.Implementation
case "ExtensionAttribute":
return (options & TypeSystemOptions.ExtensionMethods) != 0;
case "DecimalConstantAttribute":
return (options & TypeSystemOptions.DecimalConstants) != 0 && target == SymbolKind.Field;
return (options & TypeSystemOptions.DecimalConstants) != 0 && (target == SymbolKind.Field || target == SymbolKind.Parameter);
case "IsReadOnlyAttribute":
return (options & TypeSystemOptions.ReadOnlyStructsAndParameters) != 0;
case "IsByRefLikeAttribute":

Loading…
Cancel
Save