Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sorts: Stronger type checks for composite sorts #449

Merged
merged 1 commit into from
Oct 26, 2017

Conversation

marcogario
Copy link
Contributor

Constructors for ArrayType and FunctionType take other sorts. Due to the
similar spelling of constant constructor and types, it is easy to type:

ArrayType(Real, Real)

instead of

ArrayType(REAL, REAL)

This change adds a check in those constructors to enforce the arguments
to be of type PySMTType.

Constructors for ArrayType and FunctionType take other sorts. Due to the
similar spelling of constant constructor and types, it is easy to type:

  ArrayType(Real, Real)

instead of

  ArrayType(REAL, REAL)

This change adds a check in those constructors to enforce the arguments
to be of type PySMTType.
@marcogario marcogario added this to the 0.7.5 milestone Oct 22, 2017
@mikand mikand merged commit e55ad94 into master Oct 26, 2017
@mikand mikand deleted the type_constructor_improvement branch October 26, 2017 08:07
nbailluet pushed a commit to nbailluet/pysmt that referenced this pull request Mar 14, 2024
Sorts: Stronger type checks for composite sorts
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants