Skip to content

Commit

Permalink
add case for lengthFromThenTo to to_type
Browse files Browse the repository at this point in the history
  • Loading branch information
m-yac committed Dec 21, 2021
1 parent aef1edd commit 098c046
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions cryptol-remote-api/python/cryptol/cryptoltypes.py
Original file line number Diff line number Diff line change
Expand Up @@ -518,6 +518,8 @@ def to_type(t : Any) -> CryptolType:
return Max(*map(to_type, t['arguments']))
elif t['type'] == 'min':
return Min(*map(to_type, t['arguments']))
elif t['type'] == 'lengthFromThenTo':
return LenFromThenTo(*map(to_type, t['arguments']))
elif t['type'] == 'tuple':
return Tuple(*map(to_type, t['contents']))
elif t['type'] == 'unit':
Expand Down

0 comments on commit 098c046

Please sign in to comment.