Skip to content

enhanced compatibility between number and int/real types#1764

Open
wsafonov wants to merge 1 commit intomaintenance/mps20241from
feature/real-int-to-number-assignments
Open

enhanced compatibility between number and int/real types#1764
wsafonov wants to merge 1 commit intomaintenance/mps20241from
feature/real-int-to-number-assignments

Conversation

@wsafonov
Copy link
Copy Markdown
Collaborator

Currently, real and int types have correct subtyping rules for the number type allowing to assign number with precision zero to int and any number to real, but not vice versa, i.e. assigning int to a number or number{0} is not allowed and also assigning real to number{inf} is not supported yet. This PR adds additional typesystem support for those cases.

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.

1 participant