Skip to content

Commit

Permalink
fix generic
Browse files Browse the repository at this point in the history
Signed-off-by: sdghchj <[email protected]>
  • Loading branch information
sdghchj committed Mar 20, 2023
1 parent f473a7c commit de02797
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions generics.go
Original file line number Diff line number Diff line change
Expand Up @@ -331,8 +331,7 @@ func (parser *Parser) parseGenericTypeExpr(file *ast.File, typeExpr ast.Expr) (*
case *ast.ArrayType:
case *ast.MapType:
case *ast.FuncType:
case *ast.IndexExpr:
case *ast.IndexListExpr:
case *ast.IndexExpr, *ast.IndexListExpr:
name, err := getExtendedGenericFieldType(file, expr, nil)
if err == nil {
if schema, err := parser.getTypeSchema(name, file, false); err == nil {
Expand Down

0 comments on commit de02797

Please sign in to comment.