Browse Source

Fix #1183: Assertion Failed in IntroduceUsingDeclarations on Property

pull/1198/head
Siegfried Pammer 7 years ago
parent
commit
e33d1ddce3
  1. 1
      ICSharpCode.Decompiler/CSharp/RequiredNamespaceCollector.cs

1
ICSharpCode.Decompiler/CSharp/RequiredNamespaceCollector.cs

@ -76,6 +76,7 @@ namespace ICSharpCode.Decompiler.CSharp @@ -76,6 +76,7 @@ namespace ICSharpCode.Decompiler.CSharp
break;
case IMethod method:
HandleAttributes(method.Attributes, namespaces);
HandleAttributes(method.ReturnTypeAttributes, namespaces);
CollectNamespacesForTypeReference(method.ReturnType, namespaces);
foreach (var param in method.Parameters) {
HandleAttributes(param.Attributes, namespaces);

Loading…
Cancel
Save