mirror of
https://github.com/godotengine/godot
synced 2024-09-05 08:08:29 +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 a new issue