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

IDL: nat <: int #479

Merged
merged 2 commits into from
Jun 6, 2019
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 9 additions & 1 deletion design/IDL.md
Original file line number Diff line number Diff line change
Expand Up @@ -517,13 +517,21 @@ Future extensions: defaults, including for variants?

#### Primitive Types

A primitive type cannot be changed in an upgrade.
Most primitive types cannot be changed in an upgrade.
```

------------------------
<primtype> <: <primtype>
```

An exception are integers, which can be specialised to natural numbers:

```

-----------
nat <: int
```

An additional rule applies to `unavailable`, which makes it a top type, i.e., a supertype of every type.
```

Expand Down