Closed Guest0x0 closed 1 year ago
https://github.com/WebAssembly/gc/blob/main/proposals/gc/MVP.md#composite-types says:
Array types support depth subtyping array <fieldtype1> <: array <fieldtype2> iff <fieldtype1> <: <fieldtype2>
Array types support depth subtyping
array <fieldtype1> <: array <fieldtype2> iff <fieldtype1> <: <fieldtype2>
array <fieldtype1> <: array <fieldtype2>
<fieldtype1> <: <fieldtype2>
But arrays are mutable in the proposal and should be invariant.
See the next line:
https://github.com/WebAssembly/gc/blob/main/proposals/gc/MVP.md#composite-types says:
But arrays are mutable in the proposal and should be invariant.