Skip to content
This repository was archived by the owner on Apr 25, 2025. It is now read-only.

Commit 418220a

Browse files
committed
Merge branch 'funcref'
2 parents 7b1ee9b + 1a421a0 commit 418220a

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

proposals/function-references/Overview.md

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -166,13 +166,18 @@ The following rules, now defined in terms of heap types, replace and extend the
166166
- `(ref <heaptype1>) <: (ref null <heaptype2>)`
167167
- iff `<heaptype1> <: <heaptype2>`
168168

169-
##### Constructed Types
169+
##### Heap Types
170170

171171
* Any function type is a subtype of `func`
172172
- `$t <: func`
173173
- iff `$t = <functype>`
174174

175-
* Note: Function types themselves are invariant for now. This may be relaxed in future extensions.
175+
##### Type Indices
176+
177+
* Type indices are subtypes only if they define equivalent types
178+
- `$t <: $t'`
179+
- iff `$t = <functype>` and `$t' = <functype'>` and `<functype> == <functype'>`
180+
- Note: Function types are invariant for now. This may be relaxed in future extensions.
176181

177182

178183
#### Defaultability

0 commit comments

Comments
 (0)