diff --git a/src/GenFacades/Program.cs b/src/GenFacades/Program.cs index 6758e8e403..6787436aa9 100644 --- a/src/GenFacades/Program.cs +++ b/src/GenFacades/Program.cs @@ -311,10 +311,10 @@ private static IReadOnlyDictionary> GenerateDocIdTab private static IEnumerable EnumerateDocIdsToForward(IAssembly contractAssembly) { - // Make note that all type forwards (including nested) implement INamespaceAliasForType, so do - // not be tempted to filter using it, instead, we look at the aliased type to them. + // Use INamedTypeReference instead of INamespaceTypeReference in order to also include nested + // class type-forwards. var typeForwardsToForward = contractAssembly.ExportedTypes.Select(alias => alias.AliasedType) - .OfType(); + .OfType(); var typesToForward = contractAssembly.GetAllTypes().Where(t => TypeHelper.IsVisibleOutsideAssembly(t)) .OfType();