mirror of
https://github.com/godotengine/godot.git
synced 2024-11-24 21:22:48 +00:00
Merge pull request #65433 from neikeq/fix-mustbevariant-omittedtypearg
This commit is contained in:
commit
432c4c40a9
@ -39,6 +39,11 @@ namespace Godot.SourceGenerators
|
||||
for (int i = 0; i < typeArgListSyntax.Arguments.Count; i++)
|
||||
{
|
||||
var typeSyntax = typeArgListSyntax.Arguments[i];
|
||||
|
||||
// Ignore omitted type arguments, e.g.: List<>, Dictionary<,>, etc
|
||||
if (typeSyntax is OmittedTypeArgumentSyntax)
|
||||
continue;
|
||||
|
||||
var typeSymbol = sm.GetSymbolInfo(typeSyntax).Symbol as ITypeSymbol;
|
||||
Debug.Assert(typeSymbol != null);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user