Skip to content

Commit

Permalink
Fix typeparam check endless recursion
Browse files Browse the repository at this point in the history
  • Loading branch information
teggotic authored and SeanTAllen committed Jul 10, 2020
1 parent 416de3c commit 030d788
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/libponyc/type/typeparam.c
Original file line number Diff line number Diff line change
Expand Up @@ -327,12 +327,10 @@ static token_id cap_from_constraint(ast_t* type)
return cap;
}

case TK_TYPEPARAMREF:
case TK_NOMINAL:
return cap_single(type);

case TK_TYPEPARAMREF:
return cap_from_constraint(typeparam_constraint(type));

default: {}
}

Expand Down

0 comments on commit 030d788

Please sign in to comment.