Skip to content
This repository has been archived by the owner on Apr 14, 2022. It is now read-only.

Commit

Permalink
port null check for specific type creation (#1180)
Browse files Browse the repository at this point in the history
  • Loading branch information
jakebailey committed Jun 6, 2019
1 parent 8c41e23 commit 4f81ba2
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/Analysis/Ast/Impl/Types/PythonFunctionOverload.cs
Expand Up @@ -157,8 +157,10 @@ internal void SetReturnValueProvider(ReturnValueProvider provider)

case IGenericType gt when args != null: // -> CLASS[T] on standalone function (i.e. -> List[T]).
var typeArgs = ExpressionEval.GetTypeArgumentsFromParameters(this, args);
Debug.Assert(typeArgs != null);
return gt.CreateSpecificType(typeArgs);
if (typeArgs != null) {
return gt.CreateSpecificType(typeArgs);
}
break;
}

return StaticReturnValue;
Expand Down

0 comments on commit 4f81ba2

Please sign in to comment.