mirror of
https://github.com/godotengine/godot.git
synced 2025-12-08 06:09:55 +00:00
C#: Fix unhandled GD0303 error for nested generic attribute types
This commit is contained in:
parent
68f053bf82
commit
9c99e519c6
2 changed files with 14 additions and 1 deletions
|
|
@ -135,7 +135,7 @@ namespace Godot.SourceGenerators
|
|||
{
|
||||
ITypeParameterSymbol? typeParamSymbol = parentSymbol switch
|
||||
{
|
||||
IMethodSymbol methodSymbol when parentSyntax.Parent is AttributeSyntax &&
|
||||
IMethodSymbol methodSymbol when parentSyntax.Ancestors().Any(s => s is AttributeSyntax) &&
|
||||
methodSymbol.ContainingType.TypeParameters.Length > 0
|
||||
=> methodSymbol.ContainingType.TypeParameters[typeArgumentIndex],
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue