Skip to content

Commit

Permalink
Merge pull request #532 from hadashiA/ku/fix-field-namespace
Browse files Browse the repository at this point in the history
[sourcegenerator] Fix a bag that field type not referencing namespace
  • Loading branch information
hadashiA authored Jul 5, 2023
2 parents 487232e + 0f5149a commit c194894
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion VContainer.SourceGenerator/VContainerSourceGenerator.cs
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,7 @@ static bool TryEmitInjectMethod(
foreach (var fieldSymbol in typeMeta.InjectFields)
{
var fieldTypeName =
fieldSymbol.Type.ToDisplayString(SymbolDisplayFormat.MinimallyQualifiedFormat);
fieldSymbol.Type.ToDisplayString(SymbolDisplayFormat.FullyQualifiedFormat);
codeWriter.AppendLine($"__x.{fieldSymbol.Name} = resolver.Resolve<{fieldTypeName}>();");
}

Expand Down

1 comment on commit c194894

@vercel
Copy link

@vercel vercel bot commented on c194894 Jul 5, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.