Browse Source

Merge pull request #2789 from ElektroKill/fix/issue2736

Implement a fix for #2736
pull/2794/head
Daniel Grunwald 3 years ago committed by GitHub
parent
commit
a8a702023f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 4
      ICSharpCode.Decompiler/CSharp/Resolver/CSharpResolver.cs

4
ICSharpCode.Decompiler/CSharp/Resolver/CSharpResolver.cs

@ -1,4 +1,4 @@
// Copyright (c) 2010-2013 AlphaSierraPapa for the SharpDevelop Team // Copyright (c) 2010-2013 AlphaSierraPapa for the SharpDevelop Team
// //
// Permission is hereby granted, free of charge, to any person obtaining a copy of this // Permission is hereby granted, free of charge, to any person obtaining a copy of this
// software and associated documentation files (the "Software"), to deal in the Software // software and associated documentation files (the "Software"), to deal in the Software
@ -1760,7 +1760,7 @@ namespace ICSharpCode.Decompiler.CSharp.Resolver
} }
// then look for a type // then look for a type
ITypeDefinition def = n.GetTypeDefinition(identifier, k); ITypeDefinition def = n.GetTypeDefinition(identifier, k);
if (def != null) if (def != null && TopLevelTypeDefinitionIsAccessible(def))
{ {
IType result = def; IType result = def;
if (parameterizeResultType && k > 0) if (parameterizeResultType && k > 0)

Loading…
Cancel
Save